import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.web.webview.d.ts',
  content: "/*\n * Copyright (c) 2021-2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkWeb\n */\nimport { AsyncCallback } from './@ohos.base';\nimport { Callback } from './@ohos.base';\nimport cert from './@ohos.security.cert';\nimport image from './@ohos.multimedia.image';\nimport type print from './@ohos.print';\nimport { WebNetErrorList } from './@ohos.web.netErrorList';\n/**\n * This module provides the capability to manage web modules.\n *\n * @namespace webview\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * This module provides the capability to manage web modules.\n *\n * @namespace webview\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * This module provides the capability to manage web modules.\n *\n * @namespace webview\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare namespace webview {\n    /**\n     * Defines the Web's request/response header.\n     *\n     * @interface WebHeader\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Defines the Web's request/response header.\n     *\n     * @interface WebHeader\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Defines the Web's request/response header.\n     *\n     * @interface WebHeader\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines the Web's request/response header.\n     *\n     * @typedef WebHeader\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface WebHeader {\n        /**\n         * Gets the key of the request/response header.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the key of the request/response header.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Gets the key of the request/response header.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        headerKey: string;\n        /**\n         * Gets the value of the request/response header.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the value of the request/response header.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Gets the value of the request/response header.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        headerValue: string;\n    }\n    /**\n     * Enum type supplied to {@link getHitTest} for indicating the cursor node HitTest.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Enum type supplied to {@link getHitTest} for indicating the cursor node HitTest.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    enum WebHitTestType {\n        /**\n         * The edit text.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * The edit text.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        EditText,\n        /**\n         * The email address.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * The email address.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        Email,\n        /**\n         * The HTML::a tag with src=http.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * The HTML::a tag with src=http.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        HttpAnchor,\n        /**\n         * The HTML::a tag with src=http + HTML::img.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * The HTML::a tag with src=http + HTML::img.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        HttpAnchorImg,\n        /**\n         * The HTML::img tag.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * The HTML::img tag.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        Img,\n        /**\n         * The map address.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * The map address.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        Map,\n        /**\n         * The phone number.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * The phone number.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        Phone,\n        /**\n         * Other unknown HitTest.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Other unknown HitTest.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        Unknown\n    }\n    /**\n     * Defines the mode for using HttpDns.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Defines the mode for using HttpDns.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    enum SecureDnsMode {\n        /**\n         * Do not use HttpDns, can be used to revoke previously used HttpDns configuration.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Do not use HttpDns, can be used to revoke previously used HttpDns configuration.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        OFF = 0,\n        /**\n         * By default, the user-settings of HttpDns is used for dns resolution, and if it fails,\n         * the system dns is used for resolution.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * By default, the user-settings of HttpDns is used for dns resolution, and if it fails,\n         * the system dns is used for resolution.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        AUTO = 1,\n        /**\n         * Use the user-settings of HttpDns for dns resolution. If it fails, it will not\n         * fall back to the system dns, which will directly cause the page to fail to load.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Use the user-settings of HttpDns for dns resolution. If it fails, it will not\n         * fall back to the system dns, which will directly cause the page to fail to load.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SECURE_ONLY = 2\n    }\n    /**\n     * Defines the security level for the page.\n     *\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    enum SecurityLevel {\n        /**\n         * Unable to determine whether it is safe or not, the non-http/https protocol used.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NONE = 0,\n        /**\n         * Indicates the HTTPS protocol used by the page and the authentication is successful.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SECURE = 1,\n        /**\n         * The page is insecure. For example, the HTTP protocol is used or the HTTPS protocol\n         * is used but use an legacy TLS version.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        WARNING = 2,\n        /**\n         * Attempted HTTPS and failed, the authentication is failed.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        DANGEROUS = 3\n    }\n    /**\n     * The playback status of all audio and video.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum MediaPlaybackState {\n        /**\n         * No audio or video currently.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        NONE = 0,\n        /**\n         * The audio and video on the page are being played.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        PLAYING = 1,\n        /**\n         * The audio and video on the page are paused.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        PAUSED = 2,\n        /**\n         * The audio and video on the page are stopped.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        STOPPED = 3\n    }\n    /**\n     * The memory pressure level that can be set.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    enum PressureLevel {\n        /**\n         * Modules are advised to free buffers that are cheap to re-allocate and not immediately needed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        MEMORY_PRESSURE_LEVEL_MODERATE = 1,\n        /**\n         * At this level, modules are advised to free all possible memory.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        MEMORY_PRESSURE_LEVEL_CRITICAL = 2\n    }\n    /**\n     * Defines the hit test value, related to {@link getHitTestValue} method.\n     *\n     * @interface HitTestValue\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Defines the hit test value, related to {@link getHitTestValue} method.\n     *\n     * @interface HitTestValue\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides element information of the click area. related to {@link getLastHitTest} method.\n     *\n     * @typedef HitTestValue\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface HitTestValue {\n        /**\n         * Get the hit test type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get the hit test type.\n         *\n         * @type { WebHitTestType }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        type: WebHitTestType;\n        /**\n         * Get the hit test extra data.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get the hit test extra data.\n         * If the clicked area is an image or a link, the additional parameter information is it's URL address.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        extra: string;\n    }\n    /**\n     * Defines the configuration of web custom scheme, related to {@link customizeSchemes} method.\n     *\n     * @interface WebCustomScheme\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Defines the configuration of web custom scheme, related to {@link customizeSchemes} method.\n     *\n     * @interface WebCustomScheme\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines the configuration of web custom scheme, related to {@link customizeSchemes} method.\n     *\n     * @typedef WebCustomScheme\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface WebCustomScheme {\n        /**\n         * Name of the custom scheme.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Name of the custom scheme.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        schemeName: string;\n        /**\n         * Whether Cross-Origin Resource Sharing is supported.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Whether Cross-Origin Resource Sharing is supported.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        isSupportCORS: boolean;\n        /**\n         * Whether fetch request is supported.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Whether fetch request is supported.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        isSupportFetch: boolean;\n        /**\n         * If isStandard is true, the scheme will be handled as a standard scheme. The standard\n         * schemes needs to comply with the URL normalization and parsing rules defined in Section 3.1 of RFC 1738,\n         * which can be found in the http://www.ietf.org/rfc/rfc1738.txt.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isStandard?: boolean;\n        /**\n         * If isLocal is true, the same security rules as those applied to the \"file\" URL will be\n         * used to handle the scheme.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isLocal?: boolean;\n        /**\n         * If isDisplayIsolated is true, then the scheme can only be displayed from other content\n         * hosted using the same scheme.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isDisplayIsolated?: boolean;\n        /**\n         * If isSecure is true, the same security rules as those applied to the \"https\" URL will be\n         * used to handle the scheme.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isSecure?: boolean;\n        /**\n         * If isCspBypassing is true, then this scheme can bypass Content Security Policy (CSP)\n         * checks. In most cases, this value should not be true when isStandard is true.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isCspBypassing?: boolean;\n        /**\n         * If isCodeCacheSupported is true, then the js of this scheme can generate code cache.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        isCodeCacheSupported?: boolean;\n    }\n    /**\n     * Defines the callback of createPdf, related to {@link createPDF} method.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    class PdfData {\n        /**\n         * Return the data stream generated by the webpage.\n         *\n         * @returns { Uint8Array } return pdf data.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        pdfArrayBuffer(): Uint8Array;\n    }\n    /**\n     * Defines the configuration of creating pdf, related to {@Link createPdf} method.\n     *\n     * @typedef PdfConfiguration\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    interface PdfConfiguration {\n        /**\n         * Number of the width.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        width: number;\n        /**\n         * Number of the height.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        height: number;\n        /**\n         * Number of the marginTop.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        marginTop: number;\n        /**\n         * Number of the marginBottom.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        marginBottom: number;\n        /**\n         * Number of the marginRight.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        marginRight: number;\n        /**\n         * Number of the marginLeft.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        marginLeft: number;\n        /**\n         * Number of the scaling.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        scale?: number;\n        /**\n         * Whether background should be printed when creating pdf.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        shouldPrintBackground?: boolean;\n    }\n    /**\n     * Provides basic information of web storage.\n     *\n     * @interface WebStorageOrigin\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Provides basic information of web storage.\n     *\n     * @interface WebStorageOrigin\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides basic information of web storage.\n     *\n     * @typedef WebStorageOrigin\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Provides basic information of web storage.\n     *\n     * @typedef WebStorageOrigin\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface WebStorageOrigin {\n        /**\n         * Url source.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Url source.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Url source.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        origin: string;\n        /**\n         * Specify the amount of storage for the source.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Specify the amount of storage for the source.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Specify the amount of storage for the source.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        usage: number;\n        /**\n         * the callback of getOriginUsage.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * the callback of getOriginUsage.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * the callback of getOriginUsage.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        quota: number;\n    }\n    /**\n     * Defines the Web's request info.\n     *\n     * @typedef RequestInfo\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface RequestInfo {\n        /**\n         * Gets the url of the request.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        url: string;\n        /**\n         * Gets the method of the request.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        method: string;\n        /**\n         * Gets the form data of the request.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        formData: string;\n    }\n    /**\n     * Defines the scroll offset of the webpage in view port, the unit is virtual pixel.\n     * Related to {@link getScrollOffset} method.\n     *\n     * @typedef ScrollOffset\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 13\n     */\n    interface ScrollOffset {\n        /**\n         * Get the horizontal offset.\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 13\n         */\n        x: number;\n        /**\n         * Get the vertical offset.\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 13\n         */\n        y: number;\n    }\n    /**\n     * Subscribe to a callback of a specified type of web event once.\n     *\n     * @param {string} type Types of web event.\n     * @param {Callback<void>} callback Indicate callback used to receive the web event.\n     *\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n     * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Subscribe to a callback of a specified type of web event once.\n     *\n     * @param {string} type Types of web event.\n     * @param {Callback<void>} callback Indicate callback used to receive the web event.\n     *\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n     * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    function once(type: string, callback: Callback<void>): void;\n    /**\n     * Provides methods for managing web storage.3\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Provides methods for managing web storage.3\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Implements a WebStorage object to manage the Web SQL database and HTML5 Web Storage APIs.\n     * All Web components in an application share a WebStorage object.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * You must load the Web component before calling the APIs in WebStorage.\n     * </p>\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class WebStorage {\n        /**\n         * Delete all the storage data.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Delete all the storage data.\n         *\n         * @param { boolean } incognito - {@code true} delete all the storage data in incognito mode;\n         *                                {@code false} otherwise.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Deletes all data in the Web SQL Database.\n         *\n         * @param { boolean } incognito - Whether to delete all data in the Web SQL Database in incognito mode.\n         *                                {@code true} means to delete all data in the Web SQL Database in incognito mode;\n         *                                {@code false} means to delete all data in the Web SQL Database in normal non-incognito mode.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static deleteAllData(incognito?: boolean): void;\n        /**\n         * Delete the storage data with the origin.\n         *\n         * @param { string } origin - The origin which to be deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Delete the storage data with the origin.\n         *\n         * @param { string } origin - The origin which to be deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Deletes all data in the specified origin.\n         *\n         * @param { string } origin - Index of the origin, which is obtained through {@link getOrigins}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static deleteOrigin(origin: string): void;\n        /**\n         * Get current all the web storage origins.\n         * @returns { Promise<Array<WebStorageOrigin>> } - returns all the WebStorageOrigin.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100012 - Invalid web storage origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get current all the web storage origins.\n         * @returns { Promise<Array<WebStorageOrigin>> } - returns all the WebStorageOrigin.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100012 - Invalid web storage origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains information about all origins that are currently using the Web SQL Database.\n         * This API uses a promise to return the result.\n         *\n         * @returns { Promise<Array<WebStorageOrigin>> } - Promise used to return the information about the origins.\n         *                                                 For details, see {@link WebStorageOrigin}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100012 - Invalid web storage origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getOrigins(): Promise<Array<WebStorageOrigin>>;\n        /**\n         * Get current all the web storage origins.\n         * @param { AsyncCallback<Array<WebStorageOrigin>> } callback - callback used to return all the WebStorageOrigin.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100012 - Invalid web storage origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get current all the web storage origins.\n         * @param { AsyncCallback<Array<WebStorageOrigin>> } callback - callback used to return all the WebStorageOrigin.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100012 - Invalid web storage origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Obtains information about all origins that are currently using the Web SQL Database.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<Array<WebStorageOrigin>> } callback - Callback used to return the information about the\n         *                                                              origins. For details, see {@link WebStorageOrigin}.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100012 - Invalid web storage origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getOrigins(callback: AsyncCallback<Array<WebStorageOrigin>>): void;\n        /**\n         * Get the web storage quota with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @returns { Promise<number> } - the promise returned by the function\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get the web storage quota with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @returns { Promise<number> } - the promise returned by the function\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the web storage quota with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @returns { Promise<number> } - the promise returned by the function\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getOriginQuota(origin: string): Promise<number>;\n        /**\n         * Get the web storage quota with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @param { AsyncCallback<number> } callback - the callback of getOriginQuota.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get the web storage quota with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @param { AsyncCallback<number> } callback - the callback of getOriginQuota.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the web storage quota with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @param { AsyncCallback<number> } callback - the callback of getOriginQuota.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getOriginQuota(origin: string, callback: AsyncCallback<number>): void;\n        /**\n         * Get the web amount of storage with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @returns { Promise<number> } - the promise returned by the function\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get the web amount of storage with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @returns { Promise<number> } - the promise returned by the function\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the web amount of storage with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @returns { Promise<number> } - the promise returned by the function\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getOriginUsage(origin: string): Promise<number>;\n        /**\n         * Get the web amount of storage with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @param { AsyncCallback<number> } callback - the callback of getOriginUsage.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get the web amount of storage with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @param { AsyncCallback<number> } callback - the callback of getOriginUsage.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the web amount of storage with the origin.\n         * @param { string } origin -  The origin which to be inquired.\n         * @param { AsyncCallback<number> } callback - the callback of getOriginUsage.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getOriginUsage(origin: string, callback: AsyncCallback<number>): void;\n    }\n    /**\n     * Provides methods for managing web database.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Implements a WebDataBase object.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * You must load the Web component before calling the APIs in WebDataBase.\n     * </p>\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class WebDataBase {\n        /**\n        * Get whether instances holds any http authentication credentials.\n        * @returns { boolean } true if instances saved any http authentication credentials otherwise false.\n        * @syscap SystemCapability.Web.Webview.Core\n        * @since 9\n        */\n        /**\n         * Get whether instances holds any http authentication credentials.\n         * @returns { boolean } true if instances saved any http authentication credentials otherwise false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static existHttpAuthCredentials(): boolean;\n        /**\n         * Delete all http authentication credentials.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Deletes all HTTP authentication credentials saved in the cache. This API returns the result synchronously.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static deleteHttpAuthCredentials(): void;\n        /**\n         * Get http authentication credentials.\n         * @param { string } host - The host to which the credentials apply.\n         * @param { string } realm - The realm to which the credentials apply.\n         * @returns { Array<string> } Return an array containing username and password.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get http authentication credentials.\n         * @param { string } host - The host to which the credentials apply.\n         * @param { string } realm - The realm to which the credentials apply.\n         * @returns { Array<string> } Return an array containing username and password.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static getHttpAuthCredentials(host: string, realm: string): Array<string>;\n        /**\n         * Save http authentication credentials.\n         * @param { string } host - The host to which the credentials apply.\n         * @param { string } realm - The realm to which the credentials apply.\n         * @param { string } username - The username.\n         * @param { string } password - The password.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Saves HTTP authentication credentials for a given host and realm. This API returns the result synchronously.\n         * @param { string } host - Host to which HTTP authentication credentials apply.\n         * @param { string } realm - Realm to which HTTP authentication credentials apply.\n         * @param { string } username - User name.\n         * @param { string } password - Password.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;\n    }\n    /**\n     * Provides a method for managing web geographic location permissions.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Provides a method for managing web geographic location permissions.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Implements a GeolocationPermissions object.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * You must load the Web component before calling the APIs in GeolocationPermissions.\n     * </p>\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class GeolocationPermissions {\n        /**\n         * Allow geolocation permissions for specifies source.\n         * @param { string } origin - Url source.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Allow geolocation permissions for specifies source.\n         * @param { string } origin - Url source.\n         * @param { boolean } incognito - {@code true} Allow geolocation permissions for specifies source\n         *                                in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Allows the specified origin to use the geolocation information.\n         * @param { string } origin - Index of the origin.\n         * @param { boolean } incognito - Whether to allow the specified origin to use the geolocation information\n         *                                in incognito mode. {@code true} means to allow the specified origin to use the\n         *                                geolocation information in incognito mode; {@code false} means to allow the\n         *                                specified origin to use the geolocation information in normal non-incognito mode.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static allowGeolocation(origin: string, incognito?: boolean): void;\n        /**\n         * Delete geolocation permissions for specifies source.\n         * @param { string } origin - Url source.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Delete geolocation permissions for specifies source.\n         * @param { string } origin - Url source.\n         * @param { boolean } incognito - {@code true} delete geolocation permissions for specifies source\n         *                                in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Delete geolocation permissions for specifies source.\n         * @param { string } origin - Url source.\n         * @param { boolean } incognito - {@code true} delete geolocation permissions for specifies source\n         *                                in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static deleteGeolocation(origin: string, incognito?: boolean): void;\n        /**\n         * Delete all geolocation permissions.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Delete all geolocation permissions.\n         *\n         * @param { boolean } incognito - {@code true} delete all geolocation in incognito mode;\n         *                                {@code false} otherwise.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Clears the geolocation permission status of all sources.\n         *\n         * @param { boolean } incognito - Whether to clear the geolocation permission status of all sources in incognito\n         *                                mode. {@code true} means to clear the geolocation permission status of\n         *                                all sources in incognito mode; {@code false} means to clear the geolocation\n         *                                permission status of all sources in normal non-incognito mode.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static deleteAllGeolocation(incognito?: boolean): void;\n        /**\n         * Gets the geolocation permission status of the specified source.\n         * @param { string } origin - Url source.\n         * @returns { Promise<boolean> } A Promise instance that obtains the permission\n         *                               status of the specified source and obtains successfully,\n         *                               true for authorization, false for access denial. Failed\n         *                               to get, indicating that the permission status of the\n         *                               specified source does not exist.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the geolocation permission status of the specified source.\n         * @param { string } origin - Url source.\n         * @param { boolean } incognito - {@code true} gets the geolocation permission status of the\n         *                                specified source in incognito mode; {@code false} otherwise.\n         * @returns { Promise<boolean> } A Promise instance that obtains the permission\n         *                               status of the specified source and obtains successfully,\n         *                               true for authorization, false for access denial. Failed\n         *                               to get, indicating that the permission status of the\n         *                               specified source does not exist.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Gets the geolocation permission status of the specified source.\n         * @param { string } origin - Url source.\n         * @param { boolean } incognito - {@code true} gets the geolocation permission status of the\n         *                                specified source in incognito mode; {@code false} otherwise.\n         * @returns { Promise<boolean> } A Promise instance that obtains the permission\n         *                               status of the specified source and obtains successfully,\n         *                               true for authorization, false for access denial. Failed\n         *                               to get, indicating that the permission status of the\n         *                               specified source does not exist.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getAccessibleGeolocation(origin: string, incognito?: boolean): Promise<boolean>;\n        /**\n         * Gets the geolocation permission status of the specified source.\n         * @param { string } origin - Url source.\n         * @param { AsyncCallback<boolean> } callback - Returns the geolocation permission status for\n         *                                              the specified source. Successful acquisition,\n         *                                              true means authorized, false means access is\n         *                                              denied. Failed to get, indicating that the\n         *                                              permission status of the specified source does\n         *                                              not exist.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the geolocation permission status of the specified source.\n         * @param { string } origin - Url source.\n         * @param { AsyncCallback<boolean> } callback - Returns the geolocation permission status for\n         *                                              the specified source. Successful acquisition,\n         *                                              true means authorized, false means access is\n         *                                              denied. Failed to get, indicating that the\n         *                                              permission status of the specified source does\n         *                                              not exist.\n         * @param { boolean } incognito - {@code true} gets the geolocation permission status of the\n         *                                specified source in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Gets the geolocation permission status of the specified source.\n         * @param { string } origin - Url source.\n         * @param { AsyncCallback<boolean> } callback - Returns the geolocation permission status for\n         *                                              the specified source. Successful acquisition,\n         *                                              true means authorized, false means access is\n         *                                              denied. Failed to get, indicating that the\n         *                                              permission status of the specified source does\n         *                                              not exist.\n         * @param { boolean } incognito - {@code true} gets the geolocation permission status of the\n         *                                specified source in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100011 - Invalid origin.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getAccessibleGeolocation(origin: string, callback: AsyncCallback<boolean>, incognito?: boolean): void;\n        /**\n         * Get all stored geolocation permission url source.\n         *\n         * @returns { Promise<Array<string>> } A Promise instance that gets all source information about\n         *                                     the stored geolocation permission state.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get all stored geolocation permission url source.\n         * @param { boolean } incognito - {@code true} get all stored geolocation permission url source\n         *                                in incognito mode; {@code false} otherwise.\n         * @returns { Promise<Array<string>> } A Promise instance that gets all source information about\n         *                                     the stored geolocation permission state.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get all stored geolocation permission url source.\n         * @param { boolean } incognito - {@code true} get all stored geolocation permission url source\n         *                                in incognito mode; {@code false} otherwise.\n         * @returns { Promise<Array<string>> } A Promise instance that gets all source information about\n         *                                     the stored geolocation permission state.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getStoredGeolocation(incognito?: boolean): Promise<Array<string>>;\n        /**\n         * Get all stored geolocation permission url source.\n         * @param { AsyncCallback<Array<string>> } callback - Returns all source information for\n         *                                                    stored geolocation permission states.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get all stored geolocation permission url source.\n         * @param { AsyncCallback<Array<string>> } callback - Returns all source information for\n         *                                                    stored geolocation permission states.\n         * @param { boolean } incognito - {@code true} gets all stored geolocation permission url\n         *                                source in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get all stored geolocation permission url source.\n         * @param { AsyncCallback<Array<string>> } callback - Returns all source information for\n         *                                                    stored geolocation permission states.\n         * @param { boolean } incognito - {@code true} gets all stored geolocation permission url\n         *                                source in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static getStoredGeolocation(callback: AsyncCallback<Array<string>>, incognito?: boolean): void;\n    }\n    /**\n     * Provides methods for managing the web cookies.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Provides methods for managing the web cookies.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class WebCookieManager {\n        /**\n         * Gets all cookies for the given URL.\n         *\n         * @param { string } url - The URL for which the cookies are requested.\n         * @returns { string } - The cookie value for the given URL.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.web.webview.WebCookieManager#fetchCookieSync\n         */\n        static getCookie(url: string): string;\n        /**\n         * Gets all cookies for the given URL.\n         *\n         * @param { string } url - The URL for which the cookies are requested.\n         * @param { boolean } incognito - {@code true} gets all cookies for the given URL\n         *                                in incognito mode; {@code false} otherwise.\n         * @returns { string } - The cookie value for the given URL.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static fetchCookieSync(url: string, incognito?: boolean): string;\n        /**\n         * Gets all cookies for the given URL Asynchronously.\n         *\n         * @param { string } url - The URL for which the cookies are requested.\n         * @returns { Promise<string> } - A promise resolved after the cookies of given URL have been gotten.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static fetchCookie(url: string): Promise<string>;\n        /**\n        * Gets all cookies for the given URL Asynchronously.\n        *\n        * @param { string } url - The URL for which the cookies are requested.\n        * @param { boolean } incognito - {@code true} gets all cookies for the given URL\n        *                                in incognito mode; {@code false} otherwise.\n        * @returns { Promise<string> } - A promise resolved after the cookies of given URL have been gotten.\n        * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n        * <br>2. Incorrect parameter types.\n        * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n        * @syscap SystemCapability.Web.Webview.Core\n        * @since 14\n        */\n        static fetchCookie(url: string, incognito: boolean): Promise<string>;\n        /**\n         * Gets all cookies for the given URL Asynchronously.\n         *\n         * @param { string } url - The URL for which the cookies are requested.\n         * @param { AsyncCallback<string> } callback - Called after the cookies of given URL have been gotten.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static fetchCookie(url: string, callback: AsyncCallback<string>): void;\n        /**\n         * Set a single cookie (key-value pair) for the given URL.\n         *\n         * @param { string } url - The URL for which the cookie is to be set.\n         * @param { string } value - The cookie as a string, using the format of the 'Set-Cookie' HTTP response header.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @throws { BusinessError } 17100005 - The provided cookie value is invalid. It must follow the format specified\n         * <br>in RFC 6265.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.web.webview.WebCookieManager#configCookieSync\n         */\n        static setCookie(url: string, value: string): void;\n        /**\n         * Set a single cookie (key-value pair) for the given URL.\n         *\n         * @param { string } url - The URL for which the cookie is to be set.\n         * @param { string } value - The cookie as a string, using the format of the 'Set-Cookie' HTTP response header.\n         * @param { boolean } incognito - {@code true} set a single cookie (key-value pair) for the given URL\n         *                                in incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @throws { BusinessError } 17100005 - The provided cookie value is invalid. It must follow the format specified\n         * <br>in RFC 6265.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static configCookieSync(url: string, value: string, incognito?: boolean): void;\n        /**\n         * Set a single cookie (key-value pair) for the given URL.\n         *\n         * @param { string } url - The URL for which the cookie is to be set.\n         * @param { string } value - The cookie as a string, using the format of the 'Set-Cookie' HTTP response header.\n         * @param { boolean } incognito - {@code true} set a single cookie (key-value pair) for the given URL\n         *                                in incognito mode; {@code false} otherwise.\n         * @param { boolean } includeHttpOnly - {@code true} HTTP-only cookies can also be overwritten;\n         *                                      {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @throws { BusinessError } 17100005 - The provided cookie value is invalid. It must follow the format specified\n         * <br>in RFC 6265.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 14\n         */\n        static configCookieSync(url: string, value: string, incognito: boolean, includeHttpOnly: boolean): void;\n        /**\n         * Set a single cookie (key-value pair) for the given URL Asynchronously.\n         *\n         * @param { string } url - The URL for which the cookie is to be set.\n         * @param { string } value - The cookie as a string, using the format of the 'Set-Cookie' HTTP response header.\n         * @returns { Promise<void> } - A promise resolved after the cookies of given URL have been set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @throws { BusinessError } 17100005 - The provided cookie value is invalid. It must follow the format specified\n         * <br>in RFC 6265.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static configCookie(url: string, value: string): Promise<void>;\n        /**\n         * Set a single cookie (key-value pair) for the given URL Asynchronously.\n         *\n         * @param { string } url - The URL for which the cookie is to be set.\n         * @param { string } value - The cookie as a string, using the format of the 'Set-Cookie' HTTP response header.\n         * @param { boolean } incognito - {@code true} set a single cookie (key-value pair) for the given URL\n         *                                in incognito mode; {@code false} otherwise.\n         * @param { boolean } includeHttpOnly - {@code true} HTTP-only cookies can also be overwritten;\n         *                                      {@code false} otherwise.\n         * @returns { Promise<void> } - A promise resolved after the cookies of given URL have been set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @throws { BusinessError } 17100005 - The provided cookie value is invalid. It must follow the format specified\n         * <br>in RFC 6265.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 14\n         */\n        static configCookie(url: string, value: string, incognito: boolean, includeHttpOnly: boolean): Promise<void>;\n        /**\n         * Set a single cookie (key-value pair) for the given URL Asynchronously.\n         *\n         * @param { string } url - The URL for which the cookie is to be set.\n         * @param { string } value - The cookie as a string, using the format of the 'Set-Cookie' HTTP response header.\n         * @param { AsyncCallback<void> } callback - Called after the cookies have been set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100002 - URL error. No valid cookie found for the specified URL.\n         * @throws { BusinessError } 17100005 - The provided cookie value is invalid. It must follow the format specified\n         * <br>in RFC 6265.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static configCookie(url: string, value: string, callback: AsyncCallback<void>): void;\n        /**\n         * Save the cookies synchronously.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        static saveCookieSync(): void;\n        /**\n         * Save the cookies Asynchronously.\n         * @returns { Promise<void> } - A promise resolved after the cookies have been saved.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Save the cookies Asynchronously.\n         * @returns { Promise<void> } - A promise resolved after the cookies have been saved.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static saveCookieAsync(): Promise<void>;\n        /**\n         * Save the cookies Asynchronously.\n         * @param { AsyncCallback<void> } callback - Called after the cookies have been saved.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Save the cookies Asynchronously.\n         * @param { AsyncCallback<void> } callback - Called after the cookies have been saved.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static saveCookieAsync(callback: AsyncCallback<void>): void;\n        /**\n         * Get whether the instance can send and accept cookies.\n         *\n         * @returns { boolean } True if the instance can send and accept cookies else false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get whether the instance can send and accept cookies.\n         *\n         * @returns { boolean } True if the instance can send and accept cookies else false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static isCookieAllowed(): boolean;\n        /**\n         * Set whether the instance should send and accept cookies.\n         * By default this is set to be true.\n         *\n         * @param { boolean } accept - Whether the instance should send and accept cookies.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Set whether the instance should send and accept cookies.\n         * By default this is set to be true.\n         *\n         * @param { boolean } accept - Whether the instance should send and accept cookies.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static putAcceptCookieEnabled(accept: boolean): void;\n        /**\n         * Get whether the instance can send and accept thirdparty cookies.\n         *\n         * @returns { boolean } True if the instance can send and accept thirdparty cookies else false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get whether the instance can send and accept thirdparty cookies.\n         *\n         * @returns { boolean } True if the instance can send and accept thirdparty cookies else false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static isThirdPartyCookieAllowed(): boolean;\n        /**\n         * Set whether the instance should send and accept thirdparty cookies.\n         * By default this is set to be false.\n         *\n         * @param { boolean } accept - Whether the instance should send and accept thirdparty cookies.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Set whether the instance should send and accept thirdparty cookies.\n         * By default this is set to be false.\n         *\n         * @param { boolean } accept - Whether the instance should send and accept thirdparty cookies.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static putAcceptThirdPartyCookieEnabled(accept: boolean): void;\n        /**\n         * Check whether exists any cookies.\n         *\n         * @returns { boolean } True if exists more than one cookie else false;\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Check whether exists any cookies.\n         *\n         * @param { boolean } incognito - {@code true} check whether exists any cookies.\n         *                                in incognito mode; {@code false} otherwise.\n         * @returns { boolean } True if exists more than one cookie else false;\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Check whether exists any cookies.\n         *\n         * @param { boolean } incognito - {@code true} check whether exists any cookies.\n         *                                in incognito mode; {@code false} otherwise.\n         * @returns { boolean } True if exists more than one cookie else false;\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static existCookie(incognito?: boolean): boolean;\n        /**\n         * Remove all cookies.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.web.webview.WebCookieManager#clearAllCookiesSync\n         */\n        static deleteEntireCookie(): void;\n        /**\n         * Remove all cookies.\n         *\n         * @param { boolean } incognito - {@code true} remove all cookies in incognito mode;\n         *                                {@code false} otherwise.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static clearAllCookiesSync(incognito?: boolean): void;\n        /**\n         * Remove all cookies Asynchronously.\n         * @returns { Promise<void> } - A promise resolved after the cookies have been deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static clearAllCookies(): Promise<void>;\n        /**\n         * Remove all cookies Asynchronously.\n         * @param { AsyncCallback<void> } callback - Called after the cookies have been deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static clearAllCookies(callback: AsyncCallback<void>): void;\n        /**\n         * Delete the session cookies.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         * @deprecated since 11\n         * @useinstead ohos.web.webview.WebCookieManager#clearSessionCookieSync\n         */\n        static deleteSessionCookie(): void;\n        /**\n         * Delete the session cookies.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static clearSessionCookieSync(): void;\n        /**\n         * Delete the session cookies Asynchronously.\n         * @returns { Promise<void> } - A promise resolved after the cookies have been deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static clearSessionCookie(): Promise<void>;\n        /**\n         * Delete the session cookies Asynchronously.\n         * @param { AsyncCallback<void> } callback - Called after the cookies have been deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Delete the session cookies Asynchronously.\n         * @param { AsyncCallback<void> } callback - Called after the cookies have been deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static clearSessionCookie(callback: AsyncCallback<void>): void;\n    }\n    /**\n     * Enum type supplied to {@link onMessageEventExt} for indicating the type of web message.\n     *\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Enum type supplied to {@link onMessageEventExt} for indicating the type of web message.\n     *\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enum type supplied to {@link onMessageEventExt} for indicating the type of web message.\n     *\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum WebMessageType {\n        /**\n         * Unsupported data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Unsupported data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NOT_SUPPORT,\n        /**\n         * The string data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The string data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The string data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        STRING,\n        /**\n         * The number data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The number data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The number data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        NUMBER,\n        /**\n         * The boolean data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The boolean data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The boolean data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        BOOLEAN,\n        /**\n         * The arraybuffer data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The arraybuffer data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        ARRAY_BUFFER,\n        /**\n         * The array data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The array data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The array data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        ARRAY,\n        /**\n         * The error data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The error data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The error data type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        ERROR\n    }\n    /**\n     * The message received or sent from web message port.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * The message received or sent from web message port.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The message received or sent from web message port.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class WebMessageExt {\n        /**\n         * Get the type of the web message.\n         * @returns { WebMessageType } - Returns data of WebMessageType type\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the type of the web message.\n         * @returns { WebMessageType } - Returns data of WebMessageType type\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the type of the web message.\n         * @returns { WebMessageType } - Returns data of WebMessageType type\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getType(): WebMessageType;\n        /**\n         * Get the string value of the web message.\n         * @returns { string } - Returns data of string type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the string value of the web message.\n         * @returns { string } - Returns data of string type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the string value of the web message.\n         * @returns { string } - Returns data of string type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getString(): string;\n        /**\n         * Get the number value of the web message.\n         * @returns { number } - Returns data of number type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the number value of the web message.\n         * @returns { number } - Returns data of number type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the number value of the web message.\n         * @returns { number } - Returns data of number type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getNumber(): number;\n        /**\n         * Get the boolean value of the web message.\n         * @returns { boolean } - Returns data of Boolean type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the boolean value of the web message.\n         * @returns { boolean } - Returns data of Boolean type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the boolean value of the web message.\n         * @returns { boolean } - Returns data of Boolean type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getBoolean(): boolean;\n        /**\n         * Get the array buffer value of the web message.\n         * @returns { ArrayBuffer } - Returns data of ArrayBuffer type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the array buffer value of the web message.\n         * @returns { ArrayBuffer } - Returns data of ArrayBuffer type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        getArrayBuffer(): ArrayBuffer;\n        /**\n         * Get the array value of the web message.\n         * @returns { Array<string | number | boolean> } - Returns data of Array type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the array value of the web message.\n         * @returns { Array<string | number | boolean> } - Returns data of Array type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the array value of the web message.\n         * @returns { Array<string | number | boolean> } - Returns data of Array type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getArray(): Array<string | number | boolean>;\n        /**\n         * Get the error value of the web message.\n         * @returns { Error } - Returns data of Error type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the error value of the web message.\n         * @returns { Error } - Returns data of Error type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the error value of the web message.\n         * @returns { Error } - Returns data of Error type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getError(): Error;\n        /**\n         * Set the type of the web message.\n         * @param { WebMessageType } type - set WebMessageType type data\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set the type of the web message.\n         * @param { WebMessageType } type - set WebMessageType type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the type of the web message.\n         * @param { WebMessageType } type - set WebMessageType type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setType(type: WebMessageType): void;\n        /**\n         * Set the string value of the web message.\n         * @param { string } message - set string type data\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set the string value of the web message.\n         * @param { string } message - set string type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the string value of the web message.\n         * @param { string } message - set string type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setString(message: string): void;\n        /**\n         * Set the number value of the web message.\n         * @param { number } message - set number type data\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set the number value of the web message.\n         * @param { number } message - set number type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the number value of the web message.\n         * @param { number } message - set number type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setNumber(message: number): void;\n        /**\n         * Set the boolean value of the web message.\n         * @param { boolean } message - set boolean type data\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set the boolean value of the web message.\n         * @param { boolean } message - set boolean type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the boolean value of the web message.\n         * @param { boolean } message - set boolean type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setBoolean(message: boolean): void;\n        /**\n         * Set the array buffer value of the web message.\n         * @param { ArrayBuffer } message - set ArrayBuffer type data\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set the array buffer value of the web message.\n         * @param { ArrayBuffer } message - set ArrayBuffer type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        setArrayBuffer(message: ArrayBuffer): void;\n        /**\n         * Set the array value of the web message.\n         * @param { Array<string | number | boolean> } message - set Array type data\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set the array value of the web message.\n         * @param { Array<string | number | boolean> } message - set Array type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the array value of the web message.\n         * @param { Array<string | number | boolean> } message - set Array type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setArray(message: Array<string | number | boolean>): void;\n        /**\n         * Set the error value of the web message.\n         * @param { Error } message - set Error type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set the error value of the web message.\n         * @param { Error } message - set Error type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set the error value of the web message.\n         * @param { Error } message - set Error type data\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setError(message: Error): void;\n    }\n    /**\n     * WebMessage type supplied to {@link onMessageEventExt} for indicating the type of web message.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * WebMessage type supplied to {@link onMessageEventExt} for indicating the type of web message.\n     *\n     * @typedef { ArrayBuffer | string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    type WebMessage = ArrayBuffer | string;\n    /**\n     * Define html web message port.\n     * @interface WebMessagePort\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Define html web message port.\n     * @interface WebMessagePort\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Define html web message port.\n     * @typedef WebMessagePort\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface WebMessagePort {\n        /**\n         * The flag indicates whether more formats are supported than string and array buffers.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The flag indicates whether more formats are supported than string and array buffers.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        isExtentionType?: boolean;\n        /**\n         * Close port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Close port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        close(): void;\n        /**\n         * Post a message to other port.\n         * @param { WebMessage } message - Message to send.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100010 - Failed to post messages through the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Post a message to other port.\n         * @param { WebMessage } message - Message to send.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100010 - Failed to post messages through the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        postMessageEvent(message: WebMessage): void;\n        /**\n         * Receive message from other port.\n         * @param { function } callback - Callback function for receiving messages.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100006 - Failed to register a message event for the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Receive message from other port.\n         * @param { function } callback - Callback function for receiving messages.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100006 - Failed to register a message event for the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        onMessageEvent(callback: (result: WebMessage) => void): void;\n        /**\n         * Post a message to other port.\n         * @param { WebMessageExt } message - Message to send.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100010 - Failed to post messages through the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Post a message to other port.\n         * @param { WebMessageExt } message - Message to send.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100010 - Failed to post messages through the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Post a message to other port.\n         * @param { WebMessageExt } message - Message to send.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100010 - Failed to post messages through the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        postMessageEventExt(message: WebMessageExt): void;\n        /**\n         * Receive message from other port.\n         * @param { function } callback - Callback function for receiving messages.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100006 - Failed to register a message event for the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Receive message from other port.\n         * @param { function } callback - Callback function for receiving messages.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100006 - Failed to register a message event for the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Receive message from other port.\n         * @param { function } callback - Callback function for receiving messages.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100006 - Failed to register a message event for the port.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        onMessageEventExt(callback: (result: WebMessageExt) => void): void;\n    }\n    /**\n     * Provides information for history item in BackForwardList.\n     * @interface HistoryItem\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Provides information for history item in BackForwardList.\n     * @interface HistoryItem\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides information for history item in BackForwardList.\n     * @typedef HistoryItem\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface HistoryItem {\n        /**\n         * Pixelmap of icon.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Pixelmap of icon.\n         * @type { image.PixelMap }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        icon: image.PixelMap;\n        /**\n         * Url of this history item.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Url of this history item.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        historyUrl: string;\n        /**\n         * Original request url of this history item.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Original request url of this history item.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        historyRawUrl: string;\n        /**\n         * Title of this history item.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Title of this history item.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        title: string;\n    }\n    /**\n     * Provides back and forward history list information method. related to {@link HistoryItem}.\n     * @interface BackForwardList\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Provides back and forward history list information method. related to {@link HistoryItem}.\n     * @interface BackForwardList\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Provides back and forward history list information method. related to {@link HistoryItem}.\n     * @typedef BackForwardList\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface BackForwardList {\n        /**\n         * Current index in BackForwardList.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Current index in BackForwardList.\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        currentIndex: number;\n        /**\n         * Size of in BackForwardList.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Size of in BackForwardList.\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        size: number;\n        /**\n         * Get history entry at given index.\n         *\n         * @param { number } index Index of back forward list entry.\n         * @returns { HistoryItem } HistoryItem at given index in back forward list.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get history entry at given index.\n         *\n         * @param { number } index Index of back forward list entry.\n         * @returns { HistoryItem } HistoryItem at given index in back forward list.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getItemAtIndex(index: number): HistoryItem;\n    }\n    /**\n     * Defines the snapshot info.\n     *\n     * @typedef SnapshotInfo\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface SnapshotInfo {\n        /**\n         * Id of the snapshot.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        id?: string;\n        /**\n         * Size of the web.\n         *\n         * @type { ?SizeOptions }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        size?: SizeOptions;\n    }\n    /**\n     * Defines the snapshot result.\n     *\n     * @typedef SnapshotResult\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface SnapshotResult {\n        /**\n         * Id of the snapshot.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        id?: string;\n        /**\n         * The status of the snapshot.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        status?: boolean;\n        /**\n         * Size of the web.\n         *\n         * @type { ?SizeOptions }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        size?: SizeOptions;\n        /**\n         * The image in PixelMap format.\n         *\n         * @type { ?image.PixelMap }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        imagePixelMap?: image.PixelMap;\n    }\n    /**\n     * Enum type supplied to {@link runJavaScriptExt} for indicating the result of JavaScript code execution.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Enum type supplied to {@link runJavaScriptExt} for indicating the result of JavaScript code execution.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Enum type supplied to {@link runJavaScriptExt} for indicating the result of JavaScript code execution.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum JsMessageType {\n        /**\n         * Unsupported data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Unsupported data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NOT_SUPPORT,\n        /**\n         * The string data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The string data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The string data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        STRING,\n        /**\n         * The number data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The number data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The number data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        NUMBER,\n        /**\n         * The boolean data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The boolean data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The boolean data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        BOOLEAN,\n        /**\n         * The arraybuffer data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The arraybuffer data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        ARRAY_BUFFER,\n        /**\n         * The array data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * The array data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The array data type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        ARRAY\n    }\n    /**\n     * The message for indicating the of result of JavaScript code execution.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * The message for indicating the of result of JavaScript code execution.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The message for indicating the of result of JavaScript code execution.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class JsMessageExt {\n        /**\n         * Get the type of the JavaScript code execution result.\n         * @returns { JsMessageType } - Returns data of JsMessageType type\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the type of the JavaScript code execution result.\n         * @returns { JsMessageType } - Returns data of JsMessageType type\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the type of the JavaScript code execution result.\n         * @returns { JsMessageType } - Returns data of JsMessageType type\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getType(): JsMessageType;\n        /**\n         * Get the string value of the JavaScript code execution result.\n         * @returns { string } - Returns data of string type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the string value of the JavaScript code execution result.\n         * @returns { string } - Returns data of string type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the string value of the JavaScript code execution result.\n         * @returns { string } - Returns data of string type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getString(): string;\n        /**\n         * Get the number value of the JavaScript code execution result.\n         * @returns { number } - Returns data of number type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the number value of the JavaScript code execution result.\n         * @returns { number } - Returns data of number type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the number value of the JavaScript code execution result.\n         * @returns { number } - Returns data of number type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getNumber(): number;\n        /**\n         * Get the boolean value of the JavaScript code execution result.\n         * @returns { boolean } - Returns data of Boolean type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the boolean value of the JavaScript code execution result.\n         * @returns { boolean } - Returns data of Boolean type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the boolean value of the JavaScript code execution result.\n         * @returns { boolean } - Returns data of Boolean type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getBoolean(): boolean;\n        /**\n         * Get the array buffer value of the JavaScript code execution result.\n         * @returns { ArrayBuffer } - Returns data of ArrayBuffer\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the array buffer value of the JavaScript code execution result.\n         * @returns { ArrayBuffer } - Returns data of ArrayBuffer\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        getArrayBuffer(): ArrayBuffer;\n        /**\n         * Get the array value of the the JavaScript code execution result.\n         * @returns { Array<string | number | boolean> } - Returns data of Array type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get the array value of the the JavaScript code execution result.\n         * @returns { Array<string | number | boolean> } - Returns data of Array type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the array value of the the JavaScript code execution result.\n         * @returns { Array<string | number | boolean> } - Returns data of Array type\n         * @throws { BusinessError } 17100014 - The type and value of the message do not match.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getArray(): Array<string | number | boolean>;\n    }\n    /**\n     * Defines the render process mode.\n     *\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum RenderProcessMode {\n        /**\n         * ArkWeb single rendering subprocess mode. In this mode, multiple Web pages reuse a rendering subprocess.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        SINGLE = 0,\n        /**\n         * ArkWeb multi-rendering subprocess mode. In this mode, there is one rendering subprocess per Web.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        MULTIPLE\n    }\n    /**\n     * Options of generating code cache\n     * @typedef CacheOptions\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    interface CacheOptions {\n        /**\n         * Response headers used to configure the validation key of code cache.\n         * Currently only support E-Tag and Last-Modified.\n         *\n         * @type { Array<WebHeader> }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        responseHeaders: Array<WebHeader>;\n    }\n    /**\n     * Enum type supplied to {@link OfflineResourceMap} for indicating the type of resource.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    enum OfflineResourceType {\n        /**\n         * Resource of the image type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        IMAGE,\n        /**\n         * Resource of the CSS type.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        CSS,\n        /**\n         * Javascript resource loaded through the <script src=\"\" /> tag.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        CLASSIC_JS,\n        /**\n         * Javascript resource loaded through the <script src=\"\" type=\"module\" /> tag.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        MODULE_JS\n    }\n    /**\n     * Define offline resource's content and info.\n     * @typedef OfflineResourceMap\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    interface OfflineResourceMap {\n        /**\n         * Url list of resource. Url of urlList must be HTTP/HTTPS protocol and no longer than 2048.\n         *\n         * @type { Array<string> }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        urlList: Array<string>;\n        /**\n         * Arraybuffer of resource. Size must less than 10Mb and cannot be empty.\n         *\n         * @type { Uint8Array }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        resource: Uint8Array;\n        /**\n         * Response headers of resource.\n         *\n         * @type { Array<WebHeader> }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        responseHeaders: Array<WebHeader>;\n        /**\n         * Resource type\n         *\n         * @type { OfflineResourceType }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        type: OfflineResourceType;\n    }\n    /**\n     * Enum type supplied to {@link setScrollable} for indicating the type of scroll.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    enum ScrollType {\n        /**\n         * Indicates scrolling the web page through scroll event, include touch screen, touch pad, and mouse wheel.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        EVENT\n    }\n    /**\n     * Provides methods for controlling the web controller.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Provides methods for controlling the web controller.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * WebviewController can control various behaviors of Web components\n     * (including page navigation, declaring cycle state, JavaScript interaction and so on).\n     * A WebviewController object can only control one Web component,\n     * and methods on the Webviewcontroller (except static methods) can only be called\n     * after the web component is bound to the WebviewController.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class WebviewController {\n        /**\n         * A constructor used to create a WebviewController object.\n         *\n         * @param { string } [webTag] - specified the name of the web component, Empty by default.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        constructor(webTag?: string);\n        /**\n         * Initialize the web engine before loading the Web components.\n         * This is a global static API that must be called on the UI thread, and it will have no effect if any\n         * Web components are loaded.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Initialize the web engine before loading the Web components.\n         * This is a global static API that must be called on the UI thread, and it will have no effect if any\n         * Web components are loaded.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static initializeWebEngine(): void;\n        /**\n         * Set web engine to use HttpDns server to resolve dns.\n         * @param { SecureDnsMode } secureDnsMode - using HttpDns.\n         * @param { string } secureDnsConfig - The configuration of the HttpDns server.\n         *                   Must be https protocol and only allow one server to be configured.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set web engine to use HttpDns server to resolve dns.\n         * @param { SecureDnsMode } secureDnsMode - using HttpDns.\n         * @param { string } secureDnsConfig - The configuration of the HttpDns server.\n         *                   Must be https protocol and only allow one server to be configured.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3. Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static setHttpDns(secureDnsMode: SecureDnsMode, secureDnsConfig: string): void;\n        /**\n         * Enables debugging of web contents.\n         * @param { boolean } webDebuggingAccess {@code true} enables debugging of web contents; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Enables debugging of web contents.\n         * @param { boolean } webDebuggingAccess {@code true} enables debugging of web contents; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Sets whether to enable web debugging. By default, web debugging is disabled.\n         * For details, see Debugging Frontend Pages by Using DevTools.\n         *\n         * <p><strong>API Note</strong>:<br>\n         * Enabling web debugging allows users to check and modify the internal status of the web page,\n         * which poses security risks. Therefore, you are advised not to enable this function\n         * in the officially released version of the app.\n         * </p>\n         *\n         * @param { boolean } webDebuggingAccess - Sets whether to enable web debugging.{@code true} enable web debugging;\n                                                   {@code false} disable web debugging. The default value is false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static setWebDebuggingAccess(webDebuggingAccess: boolean): void;\n        /**\n         * Enable the ability to check website security risks.\n         * Illegal and fraudulent websites are mandatory enabled and can't be disabled by this function.\n         * @param { boolean } enable - {@code true} enable check the website security risks; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        enableSafeBrowsing(enable: boolean): void;\n        /**\n         * Get whether checking website security risks is enabled.\n         * @returns { boolean } True if enable the ability to check website security risks else false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        isSafeBrowsingEnabled(): boolean;\n        /**\n         * Checks whether the web page can go forward.\n         * @returns { boolean } True if the web page can go forward else false.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Checks whether the web page can go forward.\n         * @returns { boolean } True if the web page can go forward else false.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        accessForward(): boolean;\n        /**\n         * Checks whether the web page can go back.\n         * @returns { boolean } True if the web page can go back else false.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Checks whether the web page can go back.\n         * @returns { boolean } True if the web page can go back else false.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        accessBackward(): boolean;\n        /**\n         * Checks whether the web page can go back or forward the given number of steps.\n         *\n         * @param { number } step - The number of steps.\n         * @returns { boolean } True if the web page can go back else false.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Checks whether the web page can go back or forward the given number of steps.\n         *\n         * @param { number } step - The number of steps.\n         * @returns { boolean } True if the web page can go back else false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        accessStep(step: number): boolean;\n        /**\n         * Goes forward in the history of the web page.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Goes forward in the history of the web page.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        forward(): void;\n        /**\n         * Goes back in the history of the web page.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Goes back in the history of the web page.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        backward(): void;\n        /**\n         * Clears the history in the Web.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Clears the history in the Web.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        clearHistory(): void;\n        /**\n         * Let the Web active.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Call this interface to notify the Web component to enter the foreground activation state.\n         * The activation state is the state in which the application interacts with the user.\n         * The application will remain in this state until something happens,\n         * such as receiving an incoming call or closing the screen of the device,\n         * to shift the focus away from the application.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        onActive(): void;\n        /**\n         * Let the Web inactive.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Call this interface to notify the Web component to enter the inactive state.\n         * In this callback, the developer can realize the appropriate behavior when the application loses focus.\n         * In this state, any content that can be safely paused will be paused as much as possible,\n         * such as animation and geographical location. However, JavaScript will not be paused.\n         * To pause JavaScript globally, please use {@link pauseAllTimers}.To reactivate the Web component, call onActive.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        onInactive(): void;\n        /**\n         * Refreshes the current URL.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Refreshes the current URL.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        refresh(): void;\n        /**\n         * Loads the data or URL.\n         *\n         * @param { string } data - A string encoded according to \"Base64\" or \"URL\".\n         * @param { string } mimeType - Media type. For example: \"text/html\".\n         * @param { string } encoding - Encoding type. For example: \"UTF-8\".\n         * @param { string } [baseUrl] - A specified URL path (\"http\"/\"https\"/\"data\" protocol),\n         *                             which is assigned to window.origin by the Web component.\n         * @param { string } [historyUrl] - History URL. When it is not empty, it can be managed by\n         *                                history records to realize the back and forth function.\n         *                                This property is invalid when baseUrl is empty.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Loads the data or URL.\n         *\n         * @param { string } data - A string encoded according to \"Base64\" or \"URL\".\n         * @param { string } mimeType - Media type. For example: \"text/html\".\n         * @param { string } encoding - Encoding type. For example: \"UTF-8\".\n         * @param { string } [baseUrl] - A specified URL path (\"http\"/\"https\"/\"data\" protocol),\n         *                             which is assigned to window.origin by the Web component.\n         * @param { string } [historyUrl] - History URL. When it is not empty, it can be managed by\n         *                                history records to realize the back and forth function.\n         *                                This property is invalid when baseUrl is empty.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadData(data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string): void;\n        /**\n         * Loads the data or URL.\n         *\n         * @param { string | Resource } url - The URL to load.\n         * @param { Array<WebHeader> } [headers] - Additional HTTP request header for URL.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @throws { BusinessError } 17100003 - Invalid resource path or file type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Loads the data or URL.\n         *\n         * @param { string | Resource } url - The URL to load.\n         * @param { Array<WebHeader> } [headers] - Additional HTTP request header for URL.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @throws { BusinessError } 17100003 - Invalid resource path or file type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads the data or URL.\n         *\n         * @param { string | Resource } url - The URL to load.\n         * @param { Array<WebHeader> } [headers] - Additional HTTP request header for URL.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @throws { BusinessError } 17100003 - Invalid resource path or file type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadUrl(url: string | Resource, headers?: Array<WebHeader>): void;\n        /**\n         * Gets the type of HitTest.\n         * @returns { WebHitTestType } The type of HitTest.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the type of HitTest.\n         * @returns { WebHitTestType } The type of HitTest.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.web.webview.WebviewController#getLastHitTest\n         */\n        getHitTest(): WebHitTestType;\n        /**\n         * Stores the current page as a web archive.\n         *\n         * @param { string } baseName - Where the generated offline webpage is stored, This value cannot be null.\n         * @param { boolean } autoName - Decide whether to automatically generate the file name. If false, it is\n         *                               stored by the file name of baseName. If true, the file name is\n         *                               automatically generated based on the current URL and stored in the file\n         *                               directory of baseName.\n         * @returns { Promise<string> } a promise resolved after the web archive has been stored. The parameter\n         *                              will either be the filename under which the file was stored, or empty\n         *                              if storing the file failed.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100003 - Invalid resource path or file type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Stores the current page as a web archive.\n         *\n         * @param { string } baseName - Where the generated offline webpage is stored, This value cannot be null.\n         * @param { boolean } autoName - Decide whether to automatically generate the file name. If false, it is\n         *                               stored by the file name of baseName. If true, the file name is\n         *                               automatically generated based on the current URL and stored in the file\n         *                               directory of baseName.\n         * @returns { Promise<string> } a promise resolved after the web archive has been stored. The parameter\n         *                              will either be the filename under which the file was stored, or empty\n         *                              if storing the file failed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3. Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100003 - Invalid resource path or file type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        storeWebArchive(baseName: string, autoName: boolean): Promise<string>;\n        /**\n         * Stores the current page as a web archive.\n         *\n         * @param { string } baseName - Where the generated offline webpage is stored, This value cannot be null.\n         * @param { boolean } autoName - Decide whether to automatically generate the file name. If false, it is\n         *                               stored by the file name of baseName. If true, the file name is\n         *                               automatically generated based on the current URL and stored in the file\n         *                               directory of baseName.\n         * @param { AsyncCallback<string> } callback - called after the web archive has been stored. The parameter\n         *                                             will either be the filename under which the file was stored,\n         *                                             or empty if storing the file failed.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100003 - Invalid resource path or file type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Stores the current page as a web archive.\n         *\n         * @param { string } baseName - Where the generated offline webpage is stored, This value cannot be null.\n         * @param { boolean } autoName - Decide whether to automatically generate the file name. If false, it is\n         *                               stored by the file name of baseName. If true, the file name is\n         *                               automatically generated based on the current URL and stored in the file\n         *                               directory of baseName.\n         * @param { AsyncCallback<string> } callback - called after the web archive has been stored. The parameter\n         *                                             will either be the filename under which the file was stored,\n         *                                             or empty if storing the file failed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3. Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100003 - Invalid resource path or file type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback<string>): void;\n        /**\n         * Let the Web zoom by.\n         *\n         * @param { number } factor - The zoom factor.\n         *                            Reduced when the input parameter is less than 1. Enlarged when the input parameter is greater than 1.Value range: (0, 100].\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Let the Web zoom by.\n         *\n         * <p><strong>API Note</strong>:<br>\n         * zoomAccess must be true.\n         * </p>\n         *\n         * @param { number } factor - The zoom factor.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        zoom(factor: number): void;\n        /**\n         * Let the Web zoom in.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Let the Web zoom in.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Let the Web zoom in.\n         * Call this interface to enlarge the current page by 25%.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        zoomIn(): void;\n        /**\n         * Let the Web zoom out.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Let the Web zoom out.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Let the Web zoom out.\n         * Call this interface to shrink the current page by 20%.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100004 - Function not enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        zoomOut(): void;\n        /**\n         * Gets the hit test value of HitTest.\n         * @returns { HitTestValue } Return the element information of the clicked area.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get the element information of the currently clicked area.\n         * @returns { HitTestValue } Return the element information of the clicked area.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         * @deprecated since 18\n         * @useinstead ohos.web.webview.WebviewController#getLastHitTest\n         */\n        getHitTestValue(): HitTestValue;\n        /**\n         * Gets the id for the current Web.\n         * @returns { number } Returns the index value of the current Web component.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the id for the current Web.\n         * @returns { number } Returns the index value of the current Web component.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Gets the index value of the current Web component for the management of multiple Web components.\n         * @returns { number } Returns the index value of the current Web component.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getWebId(): number;\n        /**\n         * Gets the default user agent.\n         * @returns { string } Return user agent information.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the default user agent.\n         * @returns { string } Return user agent information.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        getUserAgent(): string;\n        /**\n         * Gets the title of current Web page.\n         * @returns { string } Return to File Selector Title.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the title of current Web page.\n         * @returns { string } Return to File Selector Title.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getTitle(): string;\n        /**\n         * Gets the content height of current Web page.\n         * @returns { number } Returns the page height of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Obtains the height of this web page.\n         * @returns { number } Height of the current web page. Unit: vp.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getPageHeight(): number;\n        /**\n         * Goes forward or back backOrForward in the history of the web page.\n         *\n         * @param { number } step - Steps to go forward or backward.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Goes forward or back backOrForward in the history of the web page.\n         *\n         * @param { number } step - Steps to go forward or backward.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        backOrForward(step: number): void;\n        /**\n         * Gets the request focus.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the request focus.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        requestFocus(): void;\n        /**\n         * Create web message ports\n         * @returns { Array<WebMessagePort> } An array represent 2 WebMessagePort, then can use\n         *                                    those ports to communication with html pages.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Create web message ports\n         * @param { boolean } isExtentionType - Set whether the web message port supports extention type.\n         * @returns { Array<WebMessagePort> } An array represent 2 WebMessagePort, then can use\n         *                                    those ports to communication with html pages.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Create web message ports\n         * @param { boolean } isExtentionType - Set whether the web message port supports extention type.\n         * @returns { Array<WebMessagePort> } An array represent 2 WebMessagePort, then can use\n         *                                    those ports to communication with html pages.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        createWebMessagePorts(isExtentionType?: boolean): Array<WebMessagePort>;\n        /**\n         * Post web message port to html\n         *\n         * @param { string } name - Data name information to send.\n         * @param { Array<WebMessagePort> } ports - Port number array information to send.\n         * @param { string } uri - URI to receive this information.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Post web message port to html\n         *\n         * @param { string } name - Data name information to send.\n         * @param { Array<WebMessagePort> } ports - Port number array information to send.\n         * @param { string } uri - URI to receive this information.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        postMessage(name: string, ports: Array<WebMessagePort>, uri: string): void;\n        /**\n         * Stops the current load.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Stops the current load.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        stop(): void;\n        /**\n         * Registers the JavaScript object and method list.\n         *\n         * @param { object } object - Application side JavaScript objects participating in registration.\n         * @param { string } name - The name of the registered object, which is consistent with the\n         *                          object name called in the window.\n         * @param { Array<string> } methodList - Thr method of the application side JavaScript object participating\n         *                                       in the registration.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Registers the JavaScript object and method list.\n         *\n         * @param { object } object - Application side JavaScript objects participating in registration.\n         * @param { string } name - The name of the registered object, which is consistent with the\n         *                          object name called in the window.\n         * @param { Array<string> } methodList - Thr method of the application side JavaScript object participating\n         *                                       in the registration.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Registers the supplied ArkTs object into this Web component.\n         * The object is registered into all frames of the web page, including all iframes, using the specified name.\n         * This allows the methods of the ArkTs object to be accessed from JavaScript.\n         * <p><strong>API Note</strong>:<br>\n         * Registed objects will not appear in JavaScript until the page is next (re)load.\n         * To avoid memory leaks, registerJavaScriptProxy must be used together with deleteJavaScriptProxy.\n         * To avoid security risks, it is recommended that registerJavaScriptProxy be used with trusted web components.\n         * If the same method is registered repeatedly in both synchronous and asynchronous list, it will default to an asynchronous method.\n         * The synchronous function list and asynchronous function list cannot be empty at the same time.<br>\n         * otherwise, this registration will fail.\n         *  <p>\n         *\n         * @param { object } object - Application side JavaScript objects participating in registration.\n         * @param { string } name - The name of the registered object, which is consistent with the\n         *                          object name called in the window.\n         * @param { Array<string> } methodList - The method of the application side JavaScript object participating\n         *                                       in the registration.\n         * @param { Array<string> } [asyncMethodList] - The async method of the application side JavaScript object\n         *                                            participating in the registration.\n         * @param { string } [permission] - permission configuration defining web page URLs that can access JavaScriptProxy methods.\n         *                                The configuration can be defined at two levels, object level and method level.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        registerJavaScriptProxy(object: object, name: string, methodList: Array<string>, asyncMethodList?: Array<string>, permission?: string): void;\n        /**\n         * Deletes a registered JavaScript object with given name.\n         *\n         * @param { string } name - The name of a registered JavaScript object to be deleted.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100008 - Failed to delete JavaScriptProxy because it does not exist.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Deletes a registered JavaScript object with given name.\n         *\n         * @param { string } name - The name of a registered JavaScript object to be deleted.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100008 - Failed to delete JavaScriptProxy because it does not exist.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        deleteJavaScriptRegister(name: string): void;\n        /**\n         * Search all instances of 'searchString' on the page and highlights them,\n         * result will be notify through callback onSearchResultReceive.\n         *\n         * @param { string } searchString - String to be search.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                         The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Search all instances of 'searchString' on the page and highlights them,\n         * result will be notify through callback onSearchResultReceive.\n         *\n         * @param { string } searchString - String to be search.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                         The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        searchAllAsync(searchString: string): void;\n        /**\n         * Clears the highlighting surrounding text matches created by searchAllAsync.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Clears the highlighting surrounding text matches created by searchAllAsync.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        clearMatches(): void;\n        /**\n         * Highlights and scrolls to the next match search.\n         *\n         * @param { boolean } forward - Step of search is back or forward.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Highlights and scrolls to the next match search.\n         *\n         * @param { boolean } forward - Step of search is back or forward.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        searchNext(forward: boolean): void;\n        /**\n         * Clears the ssl cache in the Web.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Clears the ssl cache in the Web.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        clearSslCache(): void;\n        /**\n         * Clears the client authentication certificate cache in the Web.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Clears the client authentication certificate cache in the Web.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        clearClientAuthenticationCache(): void;\n        /**\n         * Loads a piece of code and execute JS code in the context of the currently displayed page.\n         *\n         * @param { string } script - JavaScript Script.\n         * @returns { Promise<string> } A promise is solved after the JavaScript script is executed.\n         *                              This parameter will be the result of JavaScript script execution.\n         *                              If the JavaScript script fails to execute or has no return value,\n         *                              null will be returned.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Loads a piece of code and execute JS code in the context of the currently displayed page.\n         *\n         * @param { string } script - JavaScript Script.\n         * @returns { Promise<string> } A promise is solved after the JavaScript script is executed.\n         *                              This parameter will be the result of JavaScript script execution.\n         *                              If the JavaScript script fails to execute or has no return value,\n         *                              null will be returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        runJavaScript(script: string): Promise<string>;\n        /**\n         * Loads a piece of code and execute JS code in the context of the currently displayed page.\n         *\n         * @param { string } script - JavaScript Script.\n         * @param { AsyncCallback<string> } callback - Callbacks execute JavaScript script results.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Loads a piece of code and execute JS code in the context of the currently displayed page.\n         *\n         * @param { string } script - JavaScript Script.\n         * @param { AsyncCallback<string> } callback - Callbacks execute JavaScript script results.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        runJavaScript(script: string, callback: AsyncCallback<string>): void;\n        /**\n         * Execute JavaScript code in the context of the currently displayed page, and return the result.\n         *\n         * @param { string } script - JavaScript Script.\n         * @returns { Promise<JsMessageExt> } A promise is solved after the JavaScript script is executed.\n         *                              This parameter will be the result of JavaScript script execution.\n         *                              If the JavaScript script fails to execute or has no return value,\n         *                              a none type value will be returned.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Execute JavaScript code in the context of the currently displayed page, and return the result.\n         *\n         * @param { string } script - JavaScript Script.\n         * @returns { Promise<JsMessageExt> } A promise is solved after the JavaScript script is executed.\n         *                              This parameter will be the result of JavaScript script execution.\n         *                              If the JavaScript script fails to execute or has no return value,\n         *                              a none type value will be returned.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Execute JavaScript code in the context of the currently displayed page, and return the result.\n         *\n         * @param { string | ArrayBuffer } script - JavaScript Script.\n         * @returns { Promise<JsMessageExt> } A promise is solved after the JavaScript script is executed.\n         *                              This parameter will be the result of JavaScript script execution.\n         *                              If the JavaScript script fails to execute or has no return value,\n         *                              a none type value will be returned.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n        * Execute JavaScript code in the context of the currently displayed page, and return the result.\n        *\n        * @param { string | ArrayBuffer } script - JavaScript Script.\n        * @returns { Promise<JsMessageExt> } A promise is solved after the JavaScript script is executed.\n        *                              This parameter will be the result of JavaScript script execution.\n        *                              If the JavaScript script fails to execute or has no return value,\n        *                              a none type value will be returned.\n        * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n        * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n        * @throws { BusinessError } 17100001 - Init error.\n        *                           The WebviewController must be associated with a Web component.\n        * @syscap SystemCapability.Web.Webview.Core\n        * @crossplatform\n        * @atomicservice\n        * @since 18\n        */\n        runJavaScriptExt(script: string | ArrayBuffer): Promise<JsMessageExt>;\n        /**\n         * Execute JavaScript code in the context of the currently displayed page, and return the result.\n         *\n         * @param { string } script - JavaScript Script.\n         * @param { AsyncCallback<JsMessageExt> } callback - Callbacks execute JavaScript script results.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Execute JavaScript code in the context of the currently displayed page, and return the result.\n         *\n         * @param { string } script - JavaScript Script.\n         * @param { AsyncCallback<JsMessageExt> } callback - Callbacks execute JavaScript script results.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Execute JavaScript code in the context of the currently displayed page, and return the result.\n         *\n         * @param { string | ArrayBuffer } script - JavaScript Script.\n         * @param { AsyncCallback<JsMessageExt> } callback - Callbacks execute JavaScript script results.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Execute JavaScript code in the context of the currently displayed page, and return the result.\n         *\n         * @param { string | ArrayBuffer } script - JavaScript Script.\n         * @param { AsyncCallback<JsMessageExt> } callback - Callbacks execute JavaScript script results.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        runJavaScriptExt(script: string | ArrayBuffer, callback: AsyncCallback<JsMessageExt>): void;\n        /**\n         * Rendering current Web page into Pdf data, return the result in async mode.\n         *\n         * @param { PdfConfiguration } configuration - configuration for createPdf,\n         *                                             including page width and height, etc.\n         *                                             {@Link PdfConfiguration}\n         * @param { AsyncCallback<PdfData> } callback - Callbacks execute createPdf results.\n         *                                              PdfData is pdf data stream of current web page in Uint8Array\n         *                                              {@Link PdfData}.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        createPdf(configuration: PdfConfiguration, callback: AsyncCallback<PdfData>): void;\n        /**\n         * Rendering current Web page into Pdf data, return the result in promise mode.\n         *\n         * @param { PdfConfiguration } configuration - configuration for createPdf,\n         *                                             including page width and height, etc.\n         *                                             {@Link PdfConfiguration}\n         * @returns { Promise<PdfData> } The promise returned by the function.\n         *                               PdfData is pdf data stream of current web page in Uint8Array\n         *                               {@Link PdfData}.\n         *                               If createPdf fails or no return value,\n         *                               a none type value will be returned.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        createPdf(configuration: PdfConfiguration): Promise<PdfData>;\n        /**\n         * Gets the url of current Web page.\n         * @returns { string } Return the url of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the url of current Web page.\n         * @returns { string } Return the url of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getUrl(): string;\n        /**\n         * Scroll the contents of this Webview up by half the view size.\n         *\n         * @param { boolean } top - Whether to jump to the top of the page, if set to false,\n         *                          the page content will scroll up half the size of the viewframe,\n         *                          and when set to true, it will jump to the top of the page.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Scroll the contents of this Webview up by half the view size.\n         *\n         * @param { boolean } top - Whether to jump to the top of the page, if set to false,\n         *                          the page content will scroll up half the size of the viewframe,\n         *                          and when set to true, it will jump to the top of the page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Scroll the contents of this Webview up by half the view size.\n         *\n         * @param { boolean } top - Whether to jump to the top of the page, if set to false,\n         *                          the page content will scroll up half the size of the viewframe,\n         *                          and when set to true, it will jump to the top of the page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        pageUp(top: boolean): void;\n        /**\n         * Scroll the contents of this Webview down by half the view size.\n         *\n         * @param { boolean } bottom - Whether to jump to the top of the page, if set to false,\n         *                             the page content will scroll up half the size of the viewframe,\n         *                             and when set to true, it will jump to the top of the page.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Scroll the contents of this Webview down by half the view size.\n         *\n         * @param { boolean } bottom - Whether to jump to the top of the page, if set to false,\n         *                             the page content will scroll up half the size of the viewframe,\n         *                             and when set to true, it will jump to the top of the page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Scroll the contents of this Webview down by half the view size.\n         *\n         * @param { boolean } bottom - Whether to jump to the top of the page, if set to false,\n         *                             the page content will scroll up half the size of the viewframe,\n         *                             and when set to true, it will jump to the top of the page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        pageDown(bottom: boolean): void;\n        /**\n         * Gets the original url of current Web page.\n         * @returns { string } Return the original url of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the original url of current Web page.\n         * @returns { string } Return the original url of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Gets the original url of current Web page.\n         * @returns { string } Return the original url of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getOriginalUrl(): string;\n        /**\n         * Gets the favicon of current Web page.\n         * @returns { image.PixelMap } Return the favicon bitmap of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Gets the favicon of current Web page.\n         * @returns { image.PixelMap } Return the favicon bitmap of the current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        getFavicon(): image.PixelMap;\n        /**\n         * Put network state for web. Which is used to set window.navigator.onLine property in\n         * JavaScript.\n         * @param { boolean } enable - Whether enable window.navigator.onLine.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Put network state for web. Which is used to set window.navigator.onLine property in\n         * JavaScript.\n         * @param { boolean } enable - Whether enable window.navigator.onLine.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        setNetworkAvailable(enable: boolean): void;\n        /**\n         * Query if current document has image.\n         *\n         * @returns { Promise<boolean> } A promise resolved after query image has finished.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Asynchronous search for image existence on the current page through Promise method.\n         *\n         * @returns { Promise<boolean> } A promise resolved after query image has finished.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        hasImage(): Promise<boolean>;\n        /**\n         * Query if current document has image.\n         *\n         * @param { AsyncCallback<boolean> } callback - Called after query image has finished.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Asynchronous search for the presence of an image on the current page through callback method.\n         *\n         * @param { AsyncCallback<boolean> } callback - Called after query image has finished.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        hasImage(callback: AsyncCallback<boolean>): void;\n        /**\n         * Get back forward stack list from current webview.\n         * @returns { BackForwardList } Back forward list for current webview.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Get back forward stack list from current webview.\n         * @returns { BackForwardList } Back forward list for current webview.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getBackForwardEntries(): BackForwardList;\n        /**\n         * Remove resource cache in application. So this method will remove all cache for all web components in the\n         * same application.\n         *\n         * @param { boolean } clearRom - Remove cache in both rom and ram if true. Otherwise only clear cache\n         *                               in ram.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Clears the cache in the application. This API will clear the cache for all webviews in the same application.\n         *\n         * <p><strong>API Note</strong>:<br>\n         * You can view the Webview cache in the data/storage/el2/base/cache/web/Cache directory.\n         * </p>\n         *\n         * @param { boolean } clearRom - Whether to clear the cache in the ROM and RAM at the same time.\n         *                               {@code true} means to clear the cache in the ROM and RAM at the same time;\n         *                               {@code false} means to only clear the cache in the RAM.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        removeCache(clearRom: boolean): void;\n        /**\n         * Remove resource cache in application. So this method will remove all cache for all web components in the\n         * same application.\n         *\n         * @param { boolean } clearRom - Remove cache in both rom and ram if true. Otherwise only clear cache\n         *                               in ram.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 18\n         */\n        static removeAllCache(clearRom: boolean): void;\n        /**\n         * Scroll to the position.\n         *\n         * @param { number } x - the x of the position.\n         * @param { number } y - the y of the position.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Scroll to the position.\n         *\n         * @param { number } x - the x of the position.\n         * @param { number } y - the y of the position.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Scroll to the position.\n         *\n         * @param { number } x - the x of the position.Unit: vp.\n         * @param { number } y - the y of the position.Unit: vp.\n         * @param { number } duration - the scroll animation duration. Unit: millisecond.\n         *                              If the value is not passed, or is negative or 0, there is no animation.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        scrollTo(x: number, y: number, duration?: number): void;\n        /**\n         * Scroll by the delta position.\n         *\n         * @param { number } deltaX - the delta x of the position.\n         * @param { number } deltaY - the delta y of the position.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Scroll by the delta position.\n         *\n         * @param { number } deltaX - the delta x of the position.\n         * @param { number } deltaY - the delta y of the position.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Scroll by the delta position.\n         *\n         * <p><strong>API Note</strong>:<br>\n         * In nested scroll scenarios, calling scrollBy does not trigger nested scrolling in the parent component.\n         * </p>\n         *\n         * @param { number } deltaX - the delta x of the position.Unit: vp.\n         * @param { number } deltaY - the delta y of the position.Unit: vp.\n         * @param { number } duration - the scroll animation duration. Unit: millisecond.\n         *                              If the value is not passed, or is negative or 0, there is no animation.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        scrollBy(deltaX: number, deltaY: number, duration?: number): void;\n        /**\n         * Slide by the speed.\n         *\n         * @param { number } vx - the x speed of the speed.\n         * @param { number } vy - the y speed of the speed.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Slide by the speed.\n         *\n         * @param { number } vx - the x speed of the speed.\n         * @param { number } vy - the y speed of the speed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        slideScroll(vx: number, vy: number): void;\n        /**\n         * Serialize the access stack of the web, that is, the history of access.\n         * @returns { Uint8Array } Web access stack after serialization.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Serialize the access stack of the web, that is, the history of access.\n         * @returns { Uint8Array } Web access stack after serialization.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        serializeWebState(): Uint8Array;\n        /**\n         * Restoring the web access stack, that is, the history of access.\n         * @param { Uint8Array } state - Web access stack after serialization.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Restoring the web access stack, that is, the history of access.\n         * @param { Uint8Array } state - Web access stack after serialization.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        restoreWebState(state: Uint8Array): void;\n        /**\n         * Set whether the Web custom scheme supports cross domain and fetch requests.\n         * @param { Array<WebCustomScheme> } schemes - Configuration of web custom scheme.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 9\n         */\n        /**\n         * Set whether the Web custom scheme supports cross domain and fetch requests.\n         * @param { Array<WebCustomScheme> } schemes - Configuration of web custom scheme.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Register Web custom schemes.\n         * @param { Array<WebCustomScheme> } schemes - Configuration of web custom scheme.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100020 - Failed to register custom schemes.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static customizeSchemes(schemes: Array<WebCustomScheme>): void;\n        /**\n         * Get certificate for the current website.\n         * @returns { Promise<Array<cert.X509Cert>> } the promise of the current website's certificate.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get certificate for the current website.\n         * @returns { Promise<Array<cert.X509Cert>> } the promise of the current website's certificate.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        getCertificate(): Promise<Array<cert.X509Cert>>;\n        /**\n         * Get certificate for the current website.\n         * @param {AsyncCallback<Array<cert.X509Cert>>} callback - the callback of getCertificate.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get certificate for the current website.\n         * @param {AsyncCallback<Array<cert.X509Cert>>} callback - the callback of getCertificate.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        getCertificate(callback: AsyncCallback<Array<cert.X509Cert>>): void;\n        /**\n         * Set audio muted.\n         * @param { boolean } mute - Set the audio muted or not.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set webpage mute.\n         * @param { boolean } mute - Set the audio muted or not.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        setAudioMuted(mute: boolean): void;\n        /**\n         * Prefetch the resources required by the page, but will not execute js or render the page.\n         * @param { string } url - Which url to preresolve/preconnect.\n         * @param { Array<WebHeader> } [additionalHeaders] - Additional HTTP request header of the URL.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Prefetch the resources required by the page, but will not execute js or render the page.\n         * @param { string } url - Which url to preresolve/preconnect.\n         * @param { Array<WebHeader> } [additionalHeaders] - Additional HTTP request header of the URL.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        prefetchPage(url: string, additionalHeaders?: Array<WebHeader>): void;\n        /**\n         * Preresolve or Preconnect the url. This API can be called before loading the url to make loading faster.\n         * @param { string } url - Which url to preresolve/preconnect.\n         * @param { boolean } preconnectable - Indicates whether to preconnect.\n         * @param { number } numSockets - If preconnectable is true, this parameter indicates the number of sockets to be preconnected.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @throws { BusinessError } 17100013 - The number of preconnect sockets is invalid.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Preresolve or Preconnect the url. This API can be called before loading the url to make loading faster.\n         * @param { string } url - Which url to preresolve/preconnect.\n         * @param { boolean } preconnectable - Indicates whether to preconnect.\n         * @param { number } numSockets - If preconnectable is true, this parameter indicates the number of sockets to be preconnected.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @throws { BusinessError } 17100013 - The number of preconnect sockets is invalid.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static prepareForPageLoad(url: string, preconnectable: boolean, numSockets: number): void;\n        /**\n         * Set custom user agent.\n         * @param { string } userAgent - User custom agent information.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Set custom user agent.\n         * @param { string } userAgent - User custom agent information.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setCustomUserAgent(userAgent: string): void;\n        /**\n         * Get custom user agent.\n         * @returns { string } Get custom User agent information.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 10\n         */\n        /**\n         * Get custom user agent.\n         * @returns { string } Get custom User agent information.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getCustomUserAgent(): string;\n        /**\n         * Set web engine socket connection timeout.\n         * @param { number } timeout - Socket connection timeout.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3. Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static setConnectionTimeout(timeout: number): void;\n        /**\n         * Set delegate for download.\n         * Used to notify the progress of the download triggered from web.\n         * @param { WebDownloadDelegate } delegate - Delegate used for download triggered from web.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set delegate for download.\n         * Used to notify the progress of the download triggered from web.\n         * @param { WebDownloadDelegate } delegate - Delegate used for download triggered from web.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setDownloadDelegate(delegate: WebDownloadDelegate): void;\n        /**\n         * Start a download.\n         * @param { string } url - The download url.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Start a download.\n         * @param { string } url - The download url.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        startDownload(url: string): void;\n        /**\n         * Loads the URL use \"POST\" method with post data.\n         *\n         * @param { string } url - Request the URL use \"POST\" method.\n         * @param { ArrayBuffer } postData - This data will passed to \"POST\" request.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Loads the URL use \"POST\" method with post data.\n         *\n         * @param { string } url - Request the URL use \"POST\" method.\n         * @param { ArrayBuffer } postData - This data will passed to \"POST\" request.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        postUrl(url: string, postData: ArrayBuffer): void;\n        /**\n         * Creates a PrintDocumentAdapter instance to provide content for printing.\n         * @param { string } jobName - Name of the file to print.\n         * @returns { print.PrintDocumentAdapter } Return PrintDocumentAdapter instance created.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 11\n         */\n        createWebPrintDocumentAdapter(jobName: string): print.PrintDocumentAdapter;\n        /**\n         * Get the security level of the current page.\n         *\n         * @returns { SecurityLevel } the security level of current page.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        getSecurityLevel(): SecurityLevel;\n        /**\n         * Whether the incognito mode is set.\n         *\n         * @returns { boolean } {@code true} has been set the incognito mode; {@code false} otherwise.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        isIncognitoMode(): boolean;\n        /**\n         * Set whether scroll is allowed\n         *\n         * @param { boolean } enable - Set whether scrolling is allowed\n         *                             {@code true} means scrolling is allowed.\n         *                             {@code false} means scrolling is disabled.\n         * @param { ScrollType } type - Enable scrolling type\n         *                              When the input parameter enable is false, it indicates that scrolling of the ScrollType type is prohibited.When ScrollType\n         *                              is not specified,it indicates that all types of webpage scrolling are prohibited.\n         *                              When the input parameter enable is true, regardless of whether ScrollType is specified, it indicates that all types\n         *                              of webpage scrolling are allowed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setScrollable(enable: boolean, type?: ScrollType): void;\n        /**\n         * Get whether scrolling is allowed.\n         * @returns { boolean } Get scrolling is allowed information.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getScrollable(): boolean;\n        /**\n         * Set whether print web page background.\n         *\n         * @param { boolean } enable - Set whether print web page background\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setPrintBackground(enable: boolean): void;\n        /**\n         * Get whether print web page background.\n         * @returns { boolean } Get whether print web page background.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getPrintBackground(): boolean;\n        /**\n         * Get the url of the last frame that calls the JavaScriptProxy.\n         * This should be called on the UI thread.\n         *\n         * @returns { string } The url of the last frame that calls the JavaScriptProxy.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getLastJavascriptProxyCallingFrameUrl(): string;\n        /**\n         * Start current camera.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        startCamera(): void;\n        /**\n         * Stop current camera.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        stopCamera(): void;\n        /**\n         * Close current camera.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        closeCamera(): void;\n        /**\n         * Pause all WebView timers.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static pauseAllTimers(): void;\n        /**\n         * Resume all timers suspended from the pauseAllTimers() interface.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static resumeAllTimers(): void;\n        /**\n         * Stop all audio and video playback on the web page.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        stopAllMedia(): void;\n        /**\n         * Resumes the playback of the audio and video that are paused by the pauseAllMedia interface.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        resumeAllMedia(): void;\n        /**\n         * Pause all audio and video playback on the web page.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        pauseAllMedia(): void;\n        /**\n         * Closes all full-screen videos on a web page.\n         *\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        closeAllMediaPresentations(): void;\n        /**\n         * View the playback status of all audio and video on the web page.\n         *\n         * @returns { MediaPlaybackState } The playback status of all audio and video.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getMediaPlaybackState(): MediaPlaybackState;\n        /**\n         * Set web scheme handler for specific scheme. This is only used for related web component.\n         *\n         * @param { string } scheme - String value for url scheme.\n         * @param { WebSchemeHandler } handler - Web scheme handler.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWebSchemeHandler(scheme: string, handler: WebSchemeHandler): void;\n        /**\n         * Clear all web scheme handlers for related web component.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        clearWebSchemeHandler(): void;\n        /**\n         * Set web scheme handler for specific scheme. This is used for service worker.\n         * @param { string } scheme - String value for url scheme.\n         * @param { WebSchemeHandler } handler - Web scheme handler.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static setServiceWorkerWebSchemeHandler(scheme: string, handler: WebSchemeHandler): void;\n        /**\n         * Clear all web service worker scheme handlers.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static clearServiceWorkerWebSchemeHandler(): void;\n        /**\n         * Enable the ability to use Intelligent Tracking Prevention; default is disabled.\n         *\n         * @param { boolean } enable {@code true} enable Intelligent Tracking Prevention; {@code false} otherwise.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Enable the ability to use Intelligent Tracking Prevention; default is disabled.\n         *\n         * @param { boolean } enable {@code true} enable Intelligent Tracking Prevention; {@code false} otherwise.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        enableIntelligentTrackingPrevention(enable: boolean): void;\n        /**\n         * Get whether Intelligent Tracking Prevention is enabled.\n         *\n         * @returns { boolean } True if enable the Intelligent Tracking Prevention; else false.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Get whether Intelligent Tracking Prevention is enabled.\n         *\n         * @returns { boolean } True if enable the Intelligent Tracking Prevention; else false.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        isIntelligentTrackingPreventionEnabled(): boolean;\n        /**\n         * Add bypassing hosts for Intelligent Tracking Prevention.\n         *\n         * @param { Array<string> } hostList - Hosts that bypass the Intelligent Tracking Prevention.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Add bypassing hosts for Intelligent Tracking Prevention.\n         *\n         * @param { Array<string> } hostList - Hosts that bypass the Intelligent Tracking Prevention.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static addIntelligentTrackingPreventionBypassingList(hostList: Array<string>): void;\n        /**\n         * Remove bypassing hosts for Intelligent Tracking Prevention.\n         *\n         * @param { Array<string> } hostList - Hosts needs to remove from bypass list.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Remove bypassing hosts for Intelligent Tracking Prevention.\n         *\n         * @param { Array<string> } hostList - Hosts needs to remove from bypass list.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static removeIntelligentTrackingPreventionBypassingList(hostList: Array<string>): void;\n        /**\n         * Clear bypassing hosts for Intelligent Tracking Prevention.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Clear bypassing hosts for Intelligent Tracking Prevention.\n         *\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static clearIntelligentTrackingPreventionBypassingList(): void;\n        /**\n         * Get the default user agent.\n         *\n         * @returns {string} The default user agent string.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 14\n         */\n        static getDefaultUserAgent(): string;\n        /**\n         * Register a callback to intercept web pages playing media.\n         *\n         * @param { CreateNativeMediaPlayerCallback } callback - Called everytime when web pages try to play media.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        onCreateNativeMediaPlayer(callback: CreateNativeMediaPlayerCallback): void;\n        /**\n         * Enables the full drawing capability for the web page.\n         * This API works only during Web component initialization.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static enableWholeWebPageDrawing(): void;\n        /**\n         * Web page snapshot.\n         *\n         * @param { SnapshotInfo } info - The snapshot info.\n         * @param { AsyncCallback<SnapshotResult> } callback - the callback of snapshot.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        webPageSnapshot(info: SnapshotInfo, callback: AsyncCallback<SnapshotResult>): void;\n        /**\n         * Prefetches resource requests based on specified request information and additional HTTP request headers,\n         * saves the requests to the memory cache, and specifies the cache key and validity period to accelerate loading.\n         * Currently, only POST requests whose Content-Type is application/x-www-form-urlencoded are supported.\n         * A maximum of six POST requests can be pre-obtained. To prefetch the seventh post request,\n         * call API{@link clearPrefetchedResource} to clear the cache of unnecessary post requests.\n         * Otherwise, the cache of the earliest prefetched POST request will be automatically cleared.\n         * To use the prefetched resource cache, you need to add the key value ArkWebPostCacheKey to the header of the POST request.\n         * The content of the key value is the cacheKey of the corresponding cache.\n         * @param { RequestInfo } request - The information of the request.\n         * @param { Array<WebHeader> } [additionalHeaders] - Additional HTTP request header of the request.\n         * @param { string } [cacheKey] - The key for memory cache. Default value is the url of the request.\n         *    Only support number and letters.\n         * @param { number } [cacheValidTime] - The valid time of the cache for request, ranges greater than 0.\n         *    The unit is second. Default value is 300s.\n         *    The value of cacheValidTime must between 1 and 2147483647.\n         * @throws { BusinessError } 401 - Invalid input parameter.Possible causes: 1. Mandatory parameters are left unspecified.\n         *    2. Incorrect parameter types. 3. Parameter verification failed.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static prefetchResource(request: RequestInfo, additionalHeaders?: Array<WebHeader>, cacheKey?: string, cacheValidTime?: number): void;\n        /**\n        * Clears the cache of prefetched resources based on the specified cache key list.\n        * The cache key in the input parameter must be the prefetched resource cache key specified by API{@link prefetchResource}.\n        * @param { Array<string> } cacheKeyList - The keys for memory cache.\n        *    The key in cacheKeyList only support number and letters.\n        * @syscap SystemCapability.Web.Webview.Core\n        * @atomicservice\n        * @since 12\n        */\n        static clearPrefetchedResource(cacheKeyList: Array<string>): void;\n        /**\n         * Set render process mode of the ArkWeb.\n         *\n         * @param { RenderProcessMode } mode - The render process mode for the ArkWeb.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static setRenderProcessMode(mode: RenderProcessMode): void;\n        /**\n         * Get render process mode of the ArkWeb.\n         *\n         * @returns { RenderProcessMode } mode - The render process mode of the ArkWeb.\n         *          Call {@link getRenderProcessMode} to get the ArkWeb rendering subprocess mode of the current device,\n         *          with an enumeration value of 0 as a single subprocess mode and an enumeration value of 1 as a multi-subprocess mode.\n         *          If the obtained value is not within the range of the RenderProcessMode enumeration value,\n         *          it defaults to the multi-rendering subprocess mode.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static getRenderProcessMode(): RenderProcessMode;\n        /**\n         * Destroy the rendering process.\n         * Calling this interface will actively destroy the associated rendering process.\n         * If the rendering process has not been started or destroyed, it has no effect.\n         * In addition, destroying the rendering process will also affect all other instances associated with\n         * the rendering process.\n         *\n         * @returns { boolean } true if it was possible to terminate the render process, otherwise false.\n         *         Calling this on a not yet started, or an already terminated render will have no effect.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        terminateRenderProcess(): boolean;\n        /**\n         * Compile javascript and generate code cache.\n         * @param { string } url - Url of the javascript. Only support HTTP/HTTPS protocol and length no longer than 2048.\n         * @param { string | Uint8Array } script - Javascript source code. script must not be empty.\n         * @param { CacheOptions } cacheOptions - Generate code cache option.\n         * @returns { Promise<number> } - The promise returned by the function.\n         *    0 means generate code cache successfully, -1 means internal error.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         *    Possible causes: 1. Mandatory parameters are left unspecified.\n         *    2. Incorrect parameter types. 3. Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *    The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        precompileJavaScript(url: string, script: string | Uint8Array, cacheOptions: CacheOptions): Promise<number>;\n        /**\n         * Set IP address for host name.\n         *\n         * @param { string } hostName - Which host name to be resolved.\n         * @param { string } address - Resolved IP address.\n         * @param { number } aliveTime - The validity seconds for resolve cache.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static setHostIP(hostName: string, address: string, aliveTime: number): void;\n        /**\n         * Clear the host name IP address.\n         *\n         * @param { string } hostName - Which host name to be cleared.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static clearHostIP(hostName: string): void;\n        /**\n         * Warmup the registered service worker associated the url.\n         * @param { string } url - The url.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        static warmupServiceWorker(url: string): void;\n        /**\n         * Inject offline resources into cache.\n         *\n         * @param { Array<OfflineResourceMap> } resourceMaps - Array of offline resource info maps.\n         *    The count of array must between 1 and 30.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         *    Possible causes: 1. Mandatory parameters are left unspecified.\n         *    2. Incorrect parameter types. 3. Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *    The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 17100002 - URL error. The webpage corresponding to the URL is invalid, or the URL\n         *                           length exceeds 2048.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        injectOfflineResources(resourceMaps: Array<OfflineResourceMap>): void;\n        /**\n         * Enable the ability to block Ads, disabled by default.\n         *\n         * @param { boolean } enable {@code true} Enable Ads block; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Parameter string is too long. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *     The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Enable the ability to block Ads, disabled by default.\n         *\n         * @param { boolean } enable {@code true} Enable Ads block; {@code false} otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Parameter string is too long. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *     The WebviewController must be associated with a Web component.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        enableAdsBlock(enable: boolean): void;\n        /**\n         * Get whether Ads block is enabled.\n         *\n         * @returns { boolean } True if the ability of AdsBlock is enabled; else false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Get whether Ads block is enabled.\n         *\n         * @returns { boolean } True if the ability of AdsBlock is enabled; else false.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        isAdsBlockEnabled(): boolean;\n        /**\n         * Get whether Ads block is enabled for current Webpage.\n         *\n         * @returns { boolean } True if the ability of AdsBlock is enabled for current Webpage; else false.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Get whether Ads block is enabled for current Webpage.\n         *\n         * @returns { boolean } True if the ability of AdsBlock is enabled for current Webpage; else false.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        isAdsBlockEnabledForCurPage(): boolean;\n        /**\n         * Get the ID of the surface created by ArkWeb. This ID can be used for web page screenshots.\n         *\n         * @returns { string } The ID of the surface created by ArkWeb.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getSurfaceId(): string;\n        /**\n         * Set the URL trust list for the ArkWeb.\n         * When the URL trust list has been set, only the URLs in the list can be accessed.\n         *\n         * @param { string } urlTrustList - the URL trust list in JSON format.\n         *     An empty string means that all URLs are allowed to access.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Parameter string is too long. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *     The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setUrlTrustList(urlTrustList: string): void;\n        /**\n         * Sets a path list. When a file protocol accesses resources in the path list, it can access the local files across\n         * domains. In addition, when a path list is set, the file protocol can access only the resources in the path list.\n         * The behavior of {@link fileAccess} will be overwritten by that of this API.\n         *\n         * The paths in the list must be any of the following(sub path and module name must be provided):\n         *\n         * 1. The path of subdirectory of the application file directory, like \"/data/storage/el2/base/files/example\"\n         *    or \"/data/storage/el2/base/haps/entry/files/example\".\n         *    The application file directory is obtained using Context.filesDir in the Ability Kit.\n         * 2. The path of application resource directory or its subdirectory, like \"/data/storage/el1/bundle/entry/resource/resfile\"\n         *    or \"/data/storage/el1/bundle/entry/resource/resfile/example\".\n         *    The application resource directory is obtained from Context.resourceDir in the Ability Kit.\n         *\n         * If a path in the list is not of the preceding paths, error code 401 is reported and the path list fails\n         * to be set. When the path list is set to empty, the accessible files for the file protocol are subject to\n         * the behavior of the {@link fileAccess}.\n         *\n         * @param { Array<string> } pathList - The path list allow universal access.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Parameter string is too long. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *     The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        setPathAllowingUniversalAccess(pathList: Array<string>): void;\n        /**\n         * Trim memory by different memory pressure level.\n         *\n         * @param { PressureLevel } level - The memory pressure level for the ArkWeb.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Parameter string is too long. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 14\n         */\n        static trimMemoryByPressureLevel(level: PressureLevel): void;\n        /**\n         * Enable the BackForwardCache and indicate features that are allowed to enter BackForwardCache.\n         * Default is disabled.\n         *\n         * @param { BackForwardCacheSupportedFeatures } features - The features that supports BackForwardCache.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        static enableBackForwardCache(features: BackForwardCacheSupportedFeatures): void;\n        /**\n         * Configure the BackForwardCache.\n         *\n         * @param { BackForwardCacheOptions } options - The configuration of BackForwardCache.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        setBackForwardCacheOptions(options: BackForwardCacheOptions): void;\n        /**\n         * Get the scroll offset of the webpage in view port, the coordinates of the top left corner of the view port are X: 0, Y: 0.\n         * And the unit is virtual pixel.\n         *\n         * @returns { ScrollOffset } scroll offset\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 13\n         */\n        getScrollOffset(): ScrollOffset;\n        /**\n         * Scrolls by the specified delta position and returns a result indicating whether the scrolling operation was successful or not.\n         *\n         * @param { number } deltaX - the delta x of the position.\n         * @param { number } deltaY - the delta y of the position.\n         * @returns { boolean } true if the scroll operation is successful, otherwise false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        scrollByWithResult(deltaX: number, deltaY: number): boolean;\n        /**\n         * Gets the last hit test value of HitTest.\n         * @returns { HitTestValue } Return the element information of the clicked area.\n         * @throws { BusinessError } 17100001 - Init error.\n         *                           The WebviewController must be associated with a Web component.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 18\n         */\n        getLastHitTest(): HitTestValue;\n    }\n    /**\n     * Defines the state for download.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines the state for download.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum WebDownloadState {\n        /**\n         * The web download is in progress.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The web download is in progress.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        IN_PROGRESS = 0,\n        /**\n         * The web download has been completed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The web download has been completed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        COMPLETED,\n        /**\n         * The web download was canceled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The web download was canceled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        CANCELED,\n        /**\n         * The web download was interrupted.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The web download was interrupted.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        INTERRUPTED,\n        /**\n         * The web download is pending.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The web download is pending.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        PENDING,\n        /**\n         * The web download has been paused.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * The web download has been paused.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        PAUSED,\n        /**\n         * Unknown state.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Unknown state.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        UNKNOWN\n    }\n    /**\n     * Defines the error code for download.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Defines the error code for download.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    enum WebDownloadErrorCode {\n        /**\n         * Unknown error.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        ERROR_UNKNOWN = 0,\n        /**\n         * Generic file operation failure.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_FAILED = 1,\n        /**\n         * The file cannot be accessed due to certain restrictions.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_ACCESS_DENIED = 2,\n        /**\n         * There is not enough disk space.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_NO_SPACE = 3,\n        /**\n         * The file name is too long.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_NAME_TOO_LONG = 5,\n        /**\n         * The file is too large.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_TOO_LARGE = 6,\n        /**\n         * Some temporary problems occurred, such as not enough memory, files in use, and too many files open at the same time.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_TRANSIENT_ERROR = 10,\n        /**\n         * The file is blocked from accessing because of some local policy.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_BLOCKED = 11,\n        /**\n         * When trying to resume the download, Found that the file is not long enough, maybe the file no longer exists.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_TOO_SHORT = 13,\n        /**\n         * Hash mismatch.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_HASH_MISMATCH = 14,\n        /**\n         * The file already exists.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        FILE_SAME_AS_SOURCE = 15,\n        /**\n         * Generic network error.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NETWORK_FAILED = 20,\n        /**\n         * The network operation timed out.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NETWORK_TIMEOUT = 21,\n        /**\n         * The network was disconnected.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NETWORK_DISCONNECTED = 22,\n        /**\n         * Server down.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NETWORK_SERVER_DOWN = 23,\n        /**\n         * Invalid network requests，may redirect to unsupported scheme or an invalid URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        NETWORK_INVALID_REQUEST = 24,\n        /**\n         * The server returned a generic error.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_FAILED = 30,\n        /**\n         * The server does not support range requests.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_NO_RANGE = 31,\n        /**\n         * The server does not have the requested data.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_BAD_CONTENT = 33,\n        /**\n         * The server does not allow the file to be downloaded.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_UNAUTHORIZED = 34,\n        /**\n         * Server certificate error.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_CERT_PROBLEM = 35,\n        /**\n         * Server access forbidden.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_FORBIDDEN = 36,\n        /**\n         * Server unreachable.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_UNREACHABLE = 37,\n        /**\n         * The received data does not match content-length.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_CONTENT_LENGTH_MISMATCH = 38,\n        /**\n         * An unexpected cross-origin redirect happened.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        SERVER_CROSS_ORIGIN_REDIRECT = 39,\n        /**\n         * User cancel.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * User cancel.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        USER_CANCELED = 40,\n        /**\n         * User shut down the application.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        USER_SHUTDOWN = 41,\n        /**\n         * Application crash.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        CRASH = 50\n    }\n    /**\n     * Represents a download task, You can use this object to operate the corresponding download task.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Represents a download task, You can use this object to operate the corresponding download task.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class WebDownloadItem {\n        /**\n        * Get guid.\n        * @returns { string } - Returns the download's guid.\n        * @syscap SystemCapability.Web.Webview.Core\n        * @atomicservice\n        * @since 11\n        */\n        /**\n        * Get guid.\n        * @returns { string } - Returns the download's guid.\n        * @syscap SystemCapability.Web.Webview.Core\n        * @crossplatform\n        * @atomicservice\n        * @since 18\n        */\n        getGuid(): string;\n        /**\n         * Get current speed, in bytes per second.\n         * @returns { number } - Returns the current download speed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get current speed, in bytes per second.\n         * @returns { number } - Returns the current download speed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getCurrentSpeed(): number;\n        /**\n         * Get percent complete.\n         * @returns { number } - Returns -1 if progress is unknown. 100 if the download is already complete.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get percent complete.\n         * @returns { number } - Returns -1 if progress is unknown. 100 if the download is already complete.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getPercentComplete(): number;\n        /**\n         * Get total bytes.\n         * @returns { number } - Returns the total bytes received, -1 if the total size is unknown.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get total bytes.\n         * @returns { number } - Returns the total bytes received, -1 if the total size is unknown.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getTotalBytes(): number;\n        /**\n         * Get state of the web download.\n         * @returns { WebDownloadState } - Returns the current download state.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get state of the web download.\n         * @returns { WebDownloadState } - Returns the current download state.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getState(): WebDownloadState;\n        /**\n         * Get last error code of the web download.\n         * @returns { WebDownloadErrorCode } - Returns the last error code.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get last error code of the web download.\n         * @returns { WebDownloadErrorCode } - Returns the last error code.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getLastErrorCode(): WebDownloadErrorCode;\n        /**\n         * Get http method of the web download request.\n         * @returns { string } - Returns the http request method.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get http method of the web download request.\n         * @returns { string } - Returns the http request method.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getMethod(): string;\n        /**\n         * Get mime type of the web download.\n         * @returns { string } - Returns the mimetype.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get mime type of the web download.\n         * @returns { string } - Returns the mimetype.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getMimeType(): string;\n        /**\n         * Get url of the web download request.\n         * @returns { string } - Returns the url.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get url of the web download request.\n         * @returns { string } - Returns the url.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getUrl(): string;\n        /**\n         * Get suggested file name of the web download request.\n         * @returns { string } - Returns the suggested file name.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get suggested file name of the web download request.\n         * @returns { string } - Returns the suggested file name.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getSuggestedFileName(): string;\n        /**\n         * Start the web download.\n         * Used in onBeforeDownload, If you want to start the current download, call this function.\n         * @param { string } downloadPath - The content will be downloaded to this file.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * <br>2. Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Start the web download.\n         * Used in onBeforeDownload, If you want to start the current download, call this function.\n         * @param { string } downloadPath - The content will be downloaded to this file.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * <br>2. Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        start(downloadPath: string): void;\n        /**\n         * Cancel the web download.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Cancel the web download.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        cancel(): void;\n        /**\n         * Pause the web download.\n         * @throws { BusinessError } 17100019 - The download task is not started yet.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Pause the web download.\n         * @throws { BusinessError } 17100019 - The download task is not started yet.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        pause(): void;\n        /**\n         * Resume the web download.\n         * Use WebDownloadManager.resumeDownload to resume deserialized downloads.\n         * WebDownloadItem.resume is only used to resume the currently paused download.\n         * @throws { BusinessError } 17100016 - The download task is not paused.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Resume the web download.\n         * Use WebDownloadManager.resumeDownload to resume deserialized downloads.\n         * WebDownloadItem.resume is only used to resume the currently paused download.\n         * @throws { BusinessError } 17100016 - The download task is not paused.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        resume(): void;\n        /**\n         * Get received bytes.\n         * @returns { number } - Returns the received bytes.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get received bytes.\n         * @returns { number } - Returns the received bytes.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getReceivedBytes(): number;\n        /**\n         * Get full path of the web download.\n         * @returns { string } - Returns the full path of the download.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get full path of the web download.\n         * @returns { string } - Returns the full path of the download.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        getFullPath(): string;\n        /**\n         * Serialize web download to typed array.\n         * @returns { Uint8Array } - Returns the serialized data.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        serialize(): Uint8Array;\n        /**\n         * Deserialize web download from typed array.\n         * @param { Uint8Array } serializedData - The serialized data.\n         * @returns { WebDownloadItem } - Deserialize the serialized data into a WebDownloadItem.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * <br>2. Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static deserialize(serializedData: Uint8Array): WebDownloadItem;\n    }\n    /**\n     * The download state is notified through this delegate.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The download state is notified through this delegate.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class WebDownloadDelegate {\n        /**\n         * Callback will be triggered before web download start.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download will be start.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Callback will be triggered before web download start.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download will be start.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        onBeforeDownload(callback: Callback<WebDownloadItem>): void;\n        /**\n         * Callback will be triggered when web download is processing.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download did update.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Callback will be triggered when web download is processing.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download did update.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        onDownloadUpdated(callback: Callback<WebDownloadItem>): void;\n        /**\n         * Callback will be triggered when web download is completed.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download did finish.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Callback will be triggered when web download is completed.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download did finish.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        onDownloadFinish(callback: Callback<WebDownloadItem>): void;\n        /**\n         * Callback will be triggered when web download is interrupted or canceled.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download did fail.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Callback will be triggered when web download is interrupted or canceled.\n         * @param { Callback<WebDownloadItem> } callback - The callback of download did fail.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        onDownloadFailed(callback: Callback<WebDownloadItem>): void;\n    }\n    /**\n     * You can trigger download manually through this interface, or resume failed or canceled downloads.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * You can trigger download manually through this interface, or resume failed or canceled downloads.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class WebDownloadManager {\n        /**\n         * Set a delegate used to receive the progress of the download triggered from WebDownloadManager.\n         * @param { WebDownloadDelegate } delegate - Delegate used for download triggered from WebDownloadManager.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Set a delegate used to receive the progress of the download triggered from WebDownloadManager.\n         * @param { WebDownloadDelegate } delegate - Delegate used for download triggered from WebDownloadManager.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        static setDownloadDelegate(delegate: WebDownloadDelegate): void;\n        /**\n         * Resume the canceled or failed download.\n         * @param { WebDownloadItem } webDownloadItem - Download that need to be resume.\n         * @throws { BusinessError } 17100018 - No WebDownloadDelegate has been set yet.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 11\n         */\n        static resumeDownload(webDownloadItem: WebDownloadItem): void;\n    }\n    /**\n     * The http body stream of the request.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class WebHttpBodyStream {\n        /**\n         * Initialize data stream.\n         *\n         * @returns { Promise<void> } The promise of data stream is initialized.\n         * @throws { BusinessError } 17100022 - Failed to initialize the HTTP body stream.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        initialize(): Promise<void>;\n        /**\n         * Read the data stream to the buffer.\n         *\n         * @param { number } size - Read size.\n         * @returns { Promise<ArrayBuffer> } Read array buffer of result.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types. 3.Parameter verification failed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        read(size: number): Promise<ArrayBuffer>;\n        /**\n         * Get the total size of the data stream. When data is chunked, always return zero.\n         *\n         * @returns { number } Return size of data stream size.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getSize(): number;\n        /**\n         * Get the current position of the data stream.\n         *\n         * @returns { number } Return position in post data stream.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getPosition(): number;\n        /**\n         * Whether data stream is chunked.\n         *\n         * @returns { boolean } Whether data stream is chunked.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isChunked(): boolean;\n        /**\n         * Whether all data stream has been consumed. For chunked uploads,\n         * returns false until the first read attempt.\n         *\n         * @returns { boolean } Whether data stream has been consumed.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isEof(): boolean;\n        /**\n         * Returns true if the upload data in the stream is entirely in memory, and all read requests will succeed\n         * synchronously. Expected to return false for chunked requests.\n         *\n         * @returns { boolean } Whether the data stream is in memory.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isInMemory(): boolean;\n    }\n    /**\n     * Defines the resource type of request.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    enum WebResourceType {\n        /**\n         * Top level page.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        MAIN_FRAME = 0,\n        /**\n         * Frame or Iframe.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        SUB_FRAME = 1,\n        /**\n         * CSS stylesheet.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        STYLE_SHEET = 2,\n        /**\n         * External script.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        SCRIPT = 3,\n        /**\n         * Image (jpg/gif/png/etc).\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        IMAGE = 4,\n        /**\n         * Font.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        FONT_RESOURCE = 5,\n        /**\n         * Some other subresource. This is the default type if the actual type is unknown.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        SUB_RESOURCE = 6,\n        /**\n         * Object (or embed) tag for a plugin, or a resource that a plugin requested.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        OBJECT = 7,\n        /**\n         * Media resource.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        MEDIA = 8,\n        /**\n         * Main resource of a dedicated worker.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        WORKER = 9,\n        /**\n         * Main resource of a shared worker.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        SHARED_WORKER = 10,\n        /**\n         * Explicitly requested prefetch.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        PREFETCH = 11,\n        /**\n         * Favicon.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        FAVICON = 12,\n        /**\n         * XMLHttpRequest.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        XHR = 13,\n        /**\n         * Ping request for <a ping>/sendBeacon.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        PING = 14,\n        /**\n         * The main resource of a service worker.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        SERVICE_WORKER = 15,\n        /**\n         * Report of Content Security Policy violations.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        CSP_REPORT = 16,\n        /**\n         * Resource that a plugin requested.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        PLUGIN_RESOURCE = 17,\n        /**\n         * A main-frame service worker navigation preload request.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        NAVIGATION_PRELOAD_MAIN_FRAME = 19,\n        /**\n         * A sub-frame service worker navigation preload request.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        NAVIGATION_PRELOAD_SUB_FRAME = 20\n    }\n    /**\n     * Defines the Web resource request used for scheme handler.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class WebSchemeHandlerRequest {\n        /**\n         * Gets request headers.\n         *\n         * @returns { Array<WebHeader> } Return the request headers.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getHeader(): Array<WebHeader>;\n        /**\n         * Gets the request URL.\n         *\n         * @returns { string } Return the request URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getRequestUrl(): string;\n        /**\n         * Get request method.\n         *\n         * @returns { string } Return the request method.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getRequestMethod(): string;\n        /**\n         * Get referrer of request.\n         *\n         * @returns { string } Return referrer of request.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getReferrer(): string;\n        /**\n         * Check whether the request is for getting the main frame.\n         *\n         * @returns { boolean } Whether request is main frame.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        isMainFrame(): boolean;\n        /**\n         * Check whether the request is associated with gesture.\n         *\n         * @returns { boolean } Whether request has user gesture.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        hasGesture(): boolean;\n        /**\n         * Get http body stream.\n         *\n         * @returns { WebHttpBodyStream | null } Return http body stream. If request has no http body stream, return null.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getHttpBodyStream(): WebHttpBodyStream | null;\n        /**\n         * Get request's resource type.\n         *\n         * @returns { WebResourceType } Return the request's resource type.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        getRequestResourceType(): WebResourceType;\n        /**\n         * Gets the URL of frame which trigger this request.\n         *\n         * @returns { string } Return the URL of frame which trigger this request.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        getFrameUrl(): string;\n    }\n    /**\n     * Defines the Web resource response used for scheme handler.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class WebSchemeHandlerResponse {\n        /**\n         * Constructor.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        constructor();\n        /**\n         * Set the resolved URL after redirects or changed as a result of HSTS.\n         *\n         * @param { string } url - Set response url for redirects.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setUrl(url: string): void;\n        /**\n         * Get the resolved URL after redirects or changed as a result of HSTS.\n         *\n         * @returns { string } Return response url for redirects.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getUrl(): string;\n        /**\n         * Set net error code.\n         * @param { WebNetErrorList } code - Set net error code.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setNetErrorCode(code: WebNetErrorList): void;\n        /**\n         * Get net error code.\n         *\n         * @returns { WebNetErrorList } Return response error code.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getNetErrorCode(): WebNetErrorList;\n        /**\n         * Set http status code.\n         *\n         * @param { number } code - Http status code.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setStatus(code: number): void;\n        /**\n         * Get http status code.\n         *\n         * @returns { number } Return http status code.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getStatus(): number;\n        /**\n         * Set status text.\n         *\n         * @param { string } text - Status text.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setStatusText(text: string): void;\n        /**\n         * Get status text.\n         *\n         * @returns { string } Return http status text.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getStatusText(): string;\n        /**\n         * Set mime type.\n         *\n         * @param { string } type - Mime type.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setMimeType(type: string): void;\n        /**\n         * Get mime type.\n         *\n         * @returns { string } Return mime type of response.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getMimeType(): string;\n        /**\n         * Set the response encoding.\n         *\n         * @param { string } encoding - Encoding.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setEncoding(encoding: string): void;\n        /**\n         * Get the response encoding.\n         *\n         * @returns { string } Return encoding of response.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getEncoding(): string;\n        /**\n         * Set response hander value by name.\n         *\n         * @param { string } name - Header name.\n         * @param { string } value - Header value.\n         * @param { boolean } overwrite - Whether to overwrite.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setHeaderByName(name: string, value: string, overwrite: boolean): void;\n        /**\n         * Get the header value by name from the response.\n         *\n         * @param { string } name - Header name.\n         * @returns { string } Return header value by name.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        getHeaderByName(name: string): string;\n    }\n    /**\n     * Used to intercept url requests. Response headers and body can be sent through\n     * WebResourceHandler.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class WebResourceHandler {\n        /**\n         * Pass response headers to intercepted requests.\n         *\n         * @param { WebSchemeHandlerResponse } response - Set response header to intercept.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * @throws { BusinessError } 17100021 - The resource handler is invalid.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        didReceiveResponse(response: WebSchemeHandlerResponse): void;\n        /**\n         * Pass response body data to intercepted requests.\n         *\n         * @param { ArrayBuffer } data - Set response body to intercept.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * @throws { BusinessError } 17100021 - The resource handler is invalid.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        didReceiveResponseBody(data: ArrayBuffer): void;\n        /**\n         * Notify that this request should be finished and there is no more data available.\n         *\n         * @throws { BusinessError } 17100021 - The resource handler is invalid.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        didFinish(): void;\n        /**\n         * Notify that this request should be failed.\n         *\n         * @param { WebNetErrorList } code - Set response error code to intercept.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types.\n         * @throws { BusinessError } 17100021 - The resource handler is invalid.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        didFail(code: WebNetErrorList): void;\n    }\n    /**\n     * This class is used to intercept requests for a specified scheme.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class WebSchemeHandler {\n        /**\n         * Callback for handling the request.\n         *\n         * @param { function } callback - Callback of handling the request. If callback return false,\n         *                                it means no interception.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        onRequestStart(callback: (request: WebSchemeHandlerRequest, handler: WebResourceHandler) => boolean): void;\n        /**\n         * Callback when the request is completed.\n         *\n         * @param { Callback<WebSchemeHandlerRequest> } callback - Callback of request is completed.\n         * @throws { BusinessError } 401 - Invalid input parameter.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        onRequestStop(callback: Callback<WebSchemeHandlerRequest>): void;\n    }\n    /**\n     * Enum type supplied to {@link handleStatusChanged} for indicating the playback status.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum PlaybackStatus {\n        /**\n         * Player status is paused.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        PAUSED = 0,\n        /**\n         * Player status is playing.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        PLAYING\n    }\n    /**\n     * Enum type supplied to {@link handleNetworkStateChanged} for indicating the native player network state.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum NetworkState {\n        /**\n         * Player does not do any download tasks.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        EMPTY = 0,\n        /**\n         * Player downloads finished, waiting for next task.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        IDLE,\n        /**\n         * Player is downloading contents.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        LOADING,\n        /**\n         * Player downloads failed, due to network error.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        NETWORK_ERROR\n    }\n    /**\n     * Enum type supplied to {@link handleReadyStateChanged} for indicating the native player network state.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum ReadyState {\n        /**\n         * Player hasn't downloaded anything.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        HAVE_NOTHING = 0,\n        /**\n         * Player has downloaded metadata.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        HAVE_METADATA,\n        /**\n         * Player has played all downloaded media data.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        HAVE_CURRENT_DATA,\n        /**\n         * The buffered media data is not enough, and will cause jank.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        HAVE_FUTURE_DATA,\n        /**\n         * The buffered media data is enough.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        HAVE_ENOUGH_DATA\n    }\n    /**\n     * Enum type supplied to {@link handleError} for indicating the error type of native media player.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum MediaError {\n        /**\n         * Network error\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        NETWORK_ERROR = 1,\n        /**\n         * Media format error, such as not a valid file.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        FORMAT_ERROR,\n        /**\n         * Decode error, such as decoder doesn't support this format.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        DECODE_ERROR\n    }\n    /**\n     * The native media player status handler.\n     * Apps should use this class to handle native media player's status.\n     *\n     * @typedef NativeMediaPlayerHandler\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface NativeMediaPlayerHandler {\n        /**\n         * Handle native media player playback status.\n         *\n         * @param { PlaybackStatus } status - Playback status of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleStatusChanged(status: PlaybackStatus): void;\n        /**\n         * Handle native media player volume.\n         *  volume: float\n         *   value range: [0 - 1.0]\n         *\n         * @param { number } volume - Current volume of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleVolumeChanged(volume: number): void;\n        /**\n         * Handle native media player muted status.\n         *\n         * @param { boolean } muted - Current mute status of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleMutedChanged(muted: boolean): void;\n        /**\n         * Handle playback rate of native media player.\n         *  playbackRate: float\n         *   value range: [0 - infinity]\n         *\n         * @param { number } playbackRate - Current playback rate of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handlePlaybackRateChanged(playbackRate: number): void;\n        /**\n         * Handle duration time of media.\n         *  duration: float\n         *   value range: [0 - infinity]\n         *\n         * @param { number } duration - Duration time (in seconds) of media.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleDurationChanged(duration: number): void;\n        /**\n         * Handle current playing time of media.\n         *  currentPlayTime: float\n         *   value range: [0 - duration]\n         *\n         * @param { number } currentPlayTime - Current playing time (in seconds) of media.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleTimeUpdate(currentPlayTime: number): void;\n        /**\n         * Handle buffered end time of media.\n         *  bufferedEndTime: float\n         *   value range: [0 - duration]\n         *\n         * @param { number } bufferedEndTime - Buffered end time (in seconds) of media.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleBufferedEndTimeChanged(bufferedEndTime: number): void;\n        /**\n         * Handle native player ended event.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleEnded(): void;\n        /**\n         * Handle network state of native media player.\n         *\n         * @param { NetworkState } state - Network state of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleNetworkStateChanged(state: NetworkState): void;\n        /**\n         * Handle ready state of native media player.\n         *\n         * @param { ReadyState } state - Ready state of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleReadyStateChanged(state: ReadyState): void;\n        /**\n         * Handle native media player fullscreen state changed event.\n         *\n         * @param { boolean } fullscreen - Fullscreen state of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleFullscreenChanged(fullscreen: boolean): void;\n        /**\n         * Handle native media player seeking state.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleSeeking(): void;\n        /**\n         * Handle native media player seek finished state.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleSeekFinished(): void;\n        /**\n         * Handle native media player error event.\n         *\n         * @param { MediaError } error - Error type of native media player.\n         * @param { string } errorMessage - Description of current error.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleError(error: MediaError, errorMessage: string): void;\n        /**\n         * Handle size of video.\n         *\n         * @param { number } width - Width of video.\n         * @param { number } height - Height of video.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        handleVideoSizeChanged(width: number, height: number): void;\n    }\n    /**\n     * The scenarios for suspending the media player.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    enum SuspendType {\n        /**\n         * Page enters the BackForwardCache.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        ENTER_BACK_FORWARD_CACHE = 0,\n        /**\n         * Page enters background.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        ENTER_BACKGROUND,\n        /**\n         * Cleanup when the number of paused media player over limit.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        AUTO_CLEANUP\n    }\n    /**\n     * The bridge between web core and native media player.\n     * Apps should implements this interface, and pass an instance to web core.\n     * Then web core can control native media player by this bridge.\n     *\n     * @typedef NativeMediaPlayerBridge\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface NativeMediaPlayerBridge {\n        /**\n         * Notify native media player that the rect of video tag has changed.\n         *\n         * @param { number } x - The x position of video tag in web component.\n         * @param { number } y - The y position of video tag in web component.\n         * @param { number } width - The width of video tag.\n         * @param { number } height - The height of video tag.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        updateRect(x: number, y: number, width: number, height: number): void;\n        /**\n         * Request to play.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        play(): void;\n        /**\n         * Request to pause.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        pause(): void;\n        /**\n         * Request to fast forward / back forward to targetTime.\n         *  targetTime: float\n         *   value range: [0 - duration]\n         *\n         * @param { number } targetTime - The target time (in seconds) to FF/BF to.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        seek(targetTime: number): void;\n        /**\n         * Request to change volume of native media player.\n         *  volume: float\n         *   value range: [0 - 1.0]\n         *\n         * @param { number } volume - The volume of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setVolume(volume: number): void;\n        /**\n         * Request to mute native media player.\n         *\n         * @param { boolean } muted - Should mute native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setMuted(muted: boolean): void;\n        /**\n         * Request to change playback rate of native media player.\n         *  playbackRate: float\n         *   value range: [0 - 10.0]\n         *\n         * @param { number } playbackRate - The playback rate of native media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        setPlaybackRate(playbackRate: number): void;\n        /**\n         * Request to release native media player.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        release(): void;\n        /**\n         * Request to enter fullscreen.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        enterFullscreen(): void;\n        /**\n         * Request to exit fullscreen.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        exitFullscreen(): void;\n        /**\n         * Resume the native media player.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        resumePlayer?(): void;\n        /**\n         * Suspend to release native media player, not the NativeMediaPlayerBridge. The\n         * embedder should save the status of player when release the native media player\n         * through NativeMediaPlayerBridge.\n         *\n         * @param { SuspendType } type - The scenario for suspending the media player.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        suspendPlayer?(type: SuspendType): void;\n    }\n    /**\n     * Enum type for indicating the media type of native media player.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum MediaType {\n        /**\n         * Media type is video.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        VIDEO = 0,\n        /**\n         * Media type is audio.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        AUDIO\n    }\n    /**\n     * Enum type for indicating the media source type of native media player.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum SourceType {\n        /**\n         * The type of media source is URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        URL = 0,\n        /**\n         * The type of media source is blob.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        MSE\n    }\n    /**\n     * Media source information. Uri and format.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class MediaSourceInfo {\n        /**\n         * Source type, most time is URL.\n         * @type { SourceType }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        type: SourceType;\n        /**\n         * Media source, most time is Uri.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        source: string;\n        /**\n         * Media format, such as mp4, webm, m3u8 etc.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        format: string;\n    }\n    /**\n     * Rectangle definition.\n     *\n     * @typedef RectEvent\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    interface RectEvent {\n        /**\n         * X coordinator of top left point.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        x: number;\n        /**\n         * Y coordinator of top left point.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        y: number;\n        /**\n         * Width of this rectangle.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        width: number;\n        /**\n         * Height of this rectangle.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        height: number;\n    }\n    /**\n     * Surface information.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class NativeMediaPlayerSurfaceInfo {\n        /**\n         * Id of surface.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        id: string;\n        /**\n         * Surface rect info.\n         * @type { RectEvent }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        rect: RectEvent;\n    }\n    /**\n     * Enum type for indicating the preload type.\n     * @enum {number}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum Preload {\n        /**\n         * Doesn't do preload.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        NONE = 0,\n        /**\n         * Only preload metadata.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        METADATA,\n        /**\n         * Preload enough data to ensure playing is smooth.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        AUTO\n    }\n    /**\n     * Media information.\n     *\n     * @typedef MediaInfo\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface MediaInfo {\n        /**\n         * Id of media element.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        embedID: string;\n        /**\n         * Media type : Video or Audio.\n         * @type { MediaType }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        mediaType: MediaType;\n        /**\n         * Media source list, player should choose an appropriate one to play.\n         * @type { MediaSourceInfo[] }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        mediaSrcList: MediaSourceInfo[];\n        /**\n         * Surface to render media content on.\n         * @type { NativeMediaPlayerSurfaceInfo }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        surfaceInfo: NativeMediaPlayerSurfaceInfo;\n        /**\n         * Should show media controls.\n         * @type { boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        controlsShown: boolean;\n        /**\n         * Limit media controls items.\n         *  Such as 'nodownload', 'nofullscreen', 'noremoteplayback'\n         * @type { string[] }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        controlList: string[];\n        /**\n         * Player should be muted;\n         * @type { boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        muted: boolean;\n        /**\n         * Player should show poster before media first frame shown.\n         * @type { string }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        posterUrl: string;\n        /**\n         * Preload type.\n         * @type { Preload }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        preload: Preload;\n        /**\n         * Header information of a media network request.\n         * @type { Record<string, string> }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        headers: Record<string, string>;\n        /**\n         * The information list of attributes of media tag.\n         * @type { Record<string, string> }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        attributes: Record<string, string>;\n    }\n    /**\n     * The callback of creating a native media player.\n     *\n     * @typedef { function }\n     * @param { NativeMediaPlayerHandler } handler - callback information of onCreateNativeMediaPlayer.\n     * @param { MediaInfo } mediaInfo - callback information of onCreateNativeMediaPlayer.\n     * @returns { NativeMediaPlayerBridge } Returns whether the app takes over the media.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    type CreateNativeMediaPlayerCallback = (handler: NativeMediaPlayerHandler, mediaInfo: MediaInfo) => NativeMediaPlayerBridge;\n    /**\n     * This class is used to set adblock config.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    class AdsBlockManager {\n        /**\n         * set Ads Block ruleset file, containing easylist rules.\n         * @param {string} rulesFile - absolute file path contains app customized ads block rules.\n         * @param {boolean} replace - (@code true)replace internal rules;(@code false) add to internal rules.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * set Ads Block ruleset file, containing easylist rules.\n         * @param {string} rulesFile - absolute file path contains app customized ads block rules.\n         * @param {boolean} replace - (@code true)replace internal rules;(@code false) add to internal rules.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static setAdsBlockRules(rulesFile: string, replace: boolean): void;\n        /**\n         * Add items to Ads Block Disallow list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix, if web page url matches someone in the list,\n         * Ads Block will be disallowed for the web page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Add items to Ads Block Disallow list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix, if web page url matches someone in the list,\n         * Ads Block will be disallowed for the web page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static addAdsBlockDisallowedList(domainSuffixes: Array<string>): void;\n        /**\n         * Add items to Ads Block Allow list.\n         * By default, ads block is allowed for all pages unless they are added to the\n         * disallow list. The priority of allowlist is higher than the disallowlist. It is\n         * used to re-enable ads block on the page that matches disallow list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix, if web page url matches someone in the list,\n         * Ads Block will be allowed for the web page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Add items to Ads Block Allow list.\n         * By default, ads block is allowed for all pages unless they are added to the\n         * disallow list. The priority of allowlist is higher than the disallowlist. It is\n         * used to re-enable ads block on the page that matches disallow list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix, if web page url matches someone in the list,\n         * Ads Block will be allowed for the web page.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static addAdsBlockAllowedList(domainSuffixes: Array<string>): void;\n        /**\n         * remove items from Ads Block Disallowed list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix needed be removed from disallow list\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * remove items from Ads Block Disallowed list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix needed be removed from disallow list\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static removeAdsBlockDisallowedList(domainSuffixes: Array<string>): void;\n        /**\n         * remove items from Ads Block Allowed list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix needed be removed from allow list\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * remove items from Ads Block Allowed list.\n         * @param { Array<string> } domainSuffixes - list of domain suffix needed be removed from allow list\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static removeAdsBlockAllowedList(domainSuffixes: Array<string>): void;\n        /**\n         * clear Ads Block Disallowed list.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * clear Ads Block Disallowed list.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static clearAdsBlockDisallowedList(): void;\n        /**\n         * clear Ads Block Allowed list.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * clear Ads Block Allowed list.\n         * @throws { BusinessError } 801 - Capability not supported.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 18\n         */\n        static clearAdsBlockAllowedList(): void;\n    }\n    /**\n     * This class is used to enable back forward cache supported features.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    class BackForwardCacheSupportedFeatures {\n        /**\n         * Whether cache the pages that use native embed.\n         * Default is false;\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        nativeEmbed: boolean;\n        /**\n         * Whether cache the pages that use media take over.\n         * Default is false;\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        mediaTakeOver: boolean;\n        /**\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        constructor();\n    }\n    /**\n     * This class is used to set back forward cache options.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    class BackForwardCacheOptions {\n        /**\n         * Set the maximum size of pages that can cache.\n         * Default is 1, max is 50.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        size: number;\n        /**\n         * Set the lifetime in seconds in the BackForwardCache.\n         * Default is 600.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        timeToLive: number;\n        /**\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 12\n         */\n        constructor();\n    }\n    /**\n     * Enum type supplied to {@link insertProxyRule} for indicating the scheme filter for proxy.\n     * @enum { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    /**\n     * Enum type supplied to {@link insertProxyRule} for indicating the scheme filter for proxy.\n     * @enum { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 19\n     */\n    enum ProxySchemeFilter {\n        /**\n         * This indicates all the schemes will use the proxy.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * This indicates all the schemes will use the proxy.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        MATCH_ALL_SCHEMES = 0,\n        /**\n         * This indicates only the HTTP requests will use the proxy.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * This indicates only the HTTP requests will use the proxy.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        MATCH_HTTP = 1,\n        /**\n         * This indicates only the HTTPS requests will use the proxy.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * This indicates only the HTTPS requests will use the proxy.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        MATCH_HTTPS = 2\n    }\n    /**\n     * The ProxyConfig used by applyProxyOverride.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    /**\n     * The ProxyConfig used by applyProxyOverride.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 19\n     */\n    class ProxyConfig {\n        /**\n         * Insert a bypass rule that indicates URLs that should skip the override proxy and connect the server directly instead.\n         * These maybe URLs or IP addresses and wildcards are supported. e.g. \"*.example.com\" means that requests to\n         * \"https://www.example.com\" and \"http://test.example.com\" will connect the server directly.\n         *\n         * @param { string } bypassRule - The bypass rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Insert a bypass rule that indicates URLs that should skip the override proxy and connect the server directly instead.\n         * These maybe URLs or IP addresses and wildcards are supported. e.g. \"*.example.com\" means that requests to\n         * \"https://www.example.com\" and \"http://test.example.com\" will connect the server directly.\n         *\n         * @param { string } bypassRule - The bypass rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        insertBypassRule(bypassRule: string): void;\n        /**\n         * Insert a proxy rule that indicates URLs that match the schemeFilter will connect the server directly.\n         *\n         * @param { ProxySchemeFilter } schemeFilter - The scheme filter for this rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Insert a proxy rule that indicates URLs that match the schemeFilter will connect the server directly.\n         *\n         * @param { ProxySchemeFilter } schemeFilter - The scheme filter for this rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        insertDirectRule(schemeFilter?: ProxySchemeFilter): void;\n        /**\n         * Insert a proxy rule which indicates that requests matching the schemeFilter should use an override proxy, all requests will\n         * use the proxy rule if schemeFilter is null.\n         *\n         * The format for proxy is [scheme://]host[:port]. Scheme is optional and must be HTTP, HTTPS, or SOCKS if present. Scheme defaults to HTTP.\n         * Host is an IPv6 literal with brackets, an IPv4 literal or one or more labels seperated by a period. Port number is optional and defaults\n         * to 80 for HTTP, 443 for HTTPS and 1080 for SOCKS.\n         *\n         * e.g. example.com host: example.com\n         *      https://example.com  scheme: https  host: example.com\n         *      example.com:8888     host: example.com  port: 8888\n         *      https://example.com:8888  scheme:https  host: example.com  port:8888\n         *      192.168.1.1  host: 192.168.1.1\n         *      192.168.1.1:8888  host:192.168.1.1 port: 8888\n         *      [10:20:30:40:50:60:70:80]\n         *\n         * @param { string } proxyRule - The proxy rule.\n         * @param { ProxySchemeFilter } schemeFilter - The scheme filter for this rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Insert a proxy rule which indicates that requests matching the schemeFilter should use an override proxy, all requests will\n         * use the proxy rule if schemeFilter is null.\n         *\n         * The format for proxy is [scheme://]host[:port]. Scheme is optional and must be HTTP, HTTPS, or SOCKS if present. Scheme defaults to HTTP.\n         * Host is an IPv6 literal with brackets, an IPv4 literal or one or more labels seperated by a period. Port number is optional and defaults\n         * to 80 for HTTP, 443 for HTTPS and 1080 for SOCKS.\n         *\n         * e.g. example.com host: example.com\n         *      https://example.com  scheme: https  host: example.com\n         *      example.com:8888     host: example.com  port: 8888\n         *      https://example.com:8888  scheme:https  host: example.com  port:8888\n         *      192.168.1.1  host: 192.168.1.1\n         *      192.168.1.1:8888  host:192.168.1.1 port: 8888\n         *      [10:20:30:40:50:60:70:80]\n         *\n         * @param { string } proxyRule - The proxy rule.\n         * @param { ProxySchemeFilter } schemeFilter - The scheme filter for this rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        insertProxyRule(proxyRule: string, schemeFilter?: ProxySchemeFilter): void;\n        /**\n         * Hostnames without a period in them (and that are not IP literals) will skip the proxy and connect the server directly.\n         * Examples: \"abc\", \"local\", \"some-domain\".\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Hostnames without a period in them (and that are not IP literals) will skip the proxy and connect the server directly.\n         * Examples: \"abc\", \"local\", \"some-domain\".\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        bypassHostnamesWithoutPeriod(): void;\n        /**\n         * By default, certain hostnames implicitly bypass the proxy if they are link-local IPs, or localhost addresses. For instance\n         * hostnames matching any of (non-exhaustive list): localhost *.localhost [::1] 127.0.0.1/8 169.254/16 [FE80::]/10\n         * Call this function to override the default behavior and force localhost and link-local URLs to be sent through the proxy.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * By default, certain hostnames implicitly bypass the proxy if they are link-local IPs, or localhost addresses. For instance\n         * hostnames matching any of (non-exhaustive list): localhost *.localhost [::1] 127.0.0.1/8 169.254/16 [FE80::]/10\n         * Call this function to override the default behavior and force localhost and link-local URLs to be sent through the proxy.\n         *\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        clearImplicitRules(): void;\n        /**\n         * Reverse the bypass rules.\n         *\n         * If false all URLs will use proxy settings except URLs match the bypass rules.\n         * If true only URLs in the bypass list will use proxy, and all other URLs will be connected to directly.\n         *\n         * @param { boolean } reverse - If reverse the bypass rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Reverse the bypass rules.\n         *\n         * If false all URLs will use proxy settings except URLs match the bypass rules.\n         * If true only URLs in the bypass list will use proxy, and all other URLs will be connected to directly.\n         *\n         * @param { boolean } reverse - If reverse the bypass rule.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        enableReverseBypass(reverse: boolean): void;\n        /**\n         * Returns the bypass rules.\n         *\n         * @returns { Array<string> } The bypass rules.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Returns the bypass rules.\n         *\n         * @returns { Array<string> } The bypass rules.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        getBypassRules(): Array<string>;\n        /**\n         * Returns the proxy rules.\n         *\n         * @returns { Array<ProxyRule> } The proxy rules.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Returns the proxy rules.\n         *\n         * @returns { Array<ProxyRule> } The proxy rules.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        getProxyRules(): Array<ProxyRule>;\n        /**\n         * Returns if reverse bypass rules.\n         *\n         * @returns { boolean } If reverse bypass enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Returns if reverse bypass rules.\n         *\n         * @returns { boolean } If reverse bypass enabled.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        isReverseBypassEnabled(): boolean;\n    }\n    /**\n     * The ProxyRule used by insertProxyRule.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    /**\n     * The ProxyRule used by insertProxyRule.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 19\n     */\n    class ProxyRule {\n        /**\n         * Returns the scheme filter used for this rule.\n         *\n         * @returns { ProxySchemeFilter } The scheme filter used for this rule.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Returns the scheme filter used for this rule.\n         *\n         * @returns { ProxySchemeFilter } The scheme filter used for this rule.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        getSchemeFilter(): ProxySchemeFilter;\n        /**\n         * Returns the proxy URL.\n         *\n         * @returns { string } The proxy URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Returns the proxy URL.\n         *\n         * @returns { string } The proxy URL.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        getUrl(): string;\n    }\n    /**\n     * The callback for proxy changed.\n     *\n     * @typedef { function }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    /**\n     * The callback for proxy changed.\n     *\n     * @typedef { function }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 19\n     */\n    type OnProxyConfigChangeCallback = () => void;\n    /**\n     * This class is used for set proxy for ArkWeb.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    /**\n     * This class is used for set proxy for ArkWeb.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 19\n     */\n    class ProxyController {\n        /**\n         * Sets ProxyConfig which will be used by all Webs in the app. URLs that match patterns in the bypass list will connect the server directly.\n         * Instead, the request will use the proxy specified by the config. Requests are not guaranteed to use the new proxy immediately; wait for\n         * the listener before loading a page. This listener will be called on the UI thread.\n         * Note: calling applyProxyOverride will cause any existing system wide setting to be ignored.\n         *\n         * @param { ProxyConfig } proxyConfig - The proxy config.\n         * @param { OnProxyConfigChangeCallback } callback - Called when the proxy has been changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Sets ProxyConfig which will be used by all Webs in the app. URLs that match patterns in the bypass list will connect the server directly.\n         * Instead, the request will use the proxy specified by the config. Requests are not guaranteed to use the new proxy immediately; wait for\n         * the listener before loading a page. This listener will be called on the UI thread.\n         * Note: calling applyProxyOverride will cause any existing system wide setting to be ignored.\n         *\n         * @param { ProxyConfig } proxyConfig - The proxy config.\n         * @param { OnProxyConfigChangeCallback } callback - Called when the proxy has been changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        static applyProxyOverride(proxyConfig: ProxyConfig, callback: OnProxyConfigChangeCallback): void;\n        /**\n         * Remove the proxy config. Requests are not guaranteed to not use the proxy; Wait for the listener before loading a page. This listener\n         * will be called on the UI thread.\n         *\n         * @param { OnProxyConfigChangeCallback } callback - Called when the proxy has been changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @since 15\n         */\n        /**\n         * Remove the proxy config. Requests are not guaranteed to not use the proxy; Wait for the listener before loading a page. This listener\n         * will be called on the UI thread.\n         *\n         * @param { OnProxyConfigChangeCallback } callback - Called when the proxy has been changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br>2. Incorrect parameter types.\n         * @syscap SystemCapability.Web.Webview.Core\n         * @atomicservice\n         * @since 19\n         */\n        static removeProxyOverride(callback: OnProxyConfigChangeCallback): void;\n    }\n}\nexport default webview;\n",
}
export default FILE;